sql remove decimal places

Solutions on MaxInterview for sql remove decimal places by the best coders in the world

showing results for - "sql remove decimal places"
Carey
14 Jul 2020
1-- use cast
2UPDATE my_table
3SET my_column = CAST(my_column AS INT)
4WHERE ...;
5-- or convert
6UPDATE my_table
7SET my_column = CONVERT(INT, my_column)
8WHERE ...;