Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql truncate number

-- Truncate number with 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 #truncate #number
ADD COMMENT
Topic
Name
2+4 =