1
I want to leave all numbers that are entered in my bank with a maximum of 1 decimal place after the comma without rounding Ex: 3.2567 = 3.2 I want to know if I can truncate all the column of the bank ( I tried but could not), using: Select truncate (column,1).
"I tried but couldn’t" is a little vague. The syntax is
TRUNCATE( coluna, casas)
even (at least in version 5.5 was already present). What problem did you have? As described, your problem cannot be reproduced.– Bacco
What type of column?
– Marcelo de Andrade
You want to update the column?
– rray
Is that what you want? http://answall.com/questions/37947/valor-decimal-mysql
– R.Santos
I tried truncate (column, 1). This column is INT
– Bene
Truncate (column, 1) in Integer column?
– user60252
I did so and it worked: round (sum (column/1000),1) the total. The numbers are only ima casa after the comma. I don’t know if it was too much of a scam but it worked.
– Bene
@Leo Caracciolo yes whole.
– Bene
It sounds strange to me integer with decimal, INT or INTEGER A full-sized integer
– user60252