Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql remove decimal places

-- use cast
UPDATE my_table
SET my_column = CAST(my_column AS INT)
WHERE ...;
-- or convert
UPDATE my_table
SET my_column = CONVERT(INT, my_column)
WHERE ...;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #remove #decimal #places
ADD COMMENT
Topic
Name
6+6 =