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
demandé il y a 5 ans201 vues
1 réponse
0

select DECIMAL '2.00' / 3

Enricu
répondu il y a 5 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions