Return integer instead of float

0

Doing the following query 'select 2/3;' returns 0 but it should return 0.66666 . How I can get the decimals values?

Any idea?

Enricu
已提问 5 年前201 查看次数
1 回答
0

select DECIMAL '2.00' / 3

Enricu
已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则