Search
 
SCRIPT & CODE EXAMPLE
 

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 ...;
Comment

remove decimal in sql server

select cast(10.33 AS INT) Result -- 10
Comment

PREVIOUS NEXT
Code Example
Sql :: CONVERT time string into 12 hours in sql 
Sql :: oracle to_char number format percentage 
Sql :: sql server convert date to weekday 
Sql :: use group_concat in concat 
Sql :: check index sql server 
Sql :: get data every 30 days in sql 
Sql :: sql datetime format 
Sql :: multiple like in sql 
Sql :: mysql select default if null 
Sql :: get time component of datetime sql 
Sql :: update one column from another column in same table 
Sql :: change data type postgresql 
Sql :: mssql dockere 
Sql :: oracle apex debug time 
Sql :: how to get 30 days previous date in mysql 
Sql :: psql load dump 
Sql :: postgresql get date from datetime 
Sql :: alter table myisam to innodb 
Sql :: how to drop database name in postgresql 
Sql :: SQL query to verify the size of the table 
Sql :: how to add month in update sql 
Sql :: power bi dax is in the last 3 months 
Sql :: sql sum show 0 result 
Sql :: oracle dependency 
Sql :: list table columns sql 
Sql :: sql convert datetime 
Sql :: rename column mysql 
Sql :: postgres role does not exist 
Sql :: postgresql must appear in the GROUP BY clause or be used in an aggregate function 
Sql :: SQL Syntax of LEFT JOIN 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =