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
posta 5 anni fa201 visualizzazioni
1 Risposta
0

select DECIMAL '2.00' / 3

Enricu
con risposta 5 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande