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 :: SQL SELECT TOP Equivalent in oracal 
Sql :: sql query order 
Sql :: sqlite3 visual table schema 
Sql :: mysql error the maximum column size is 767 bytes. 
Sql :: extract postgresql 
Sql :: limit and offset in stored procedure mssql 
Sql :: mysql show column type 
Sql :: excel vba import data to sql server 
Sql :: tablo silme SQL 
Sql :: convert all tables in database to from myisam to innodb 
Sql :: sql check constraint 
Sql :: get string between specific character sql 
Sql :: automatically update database last seen datetime in sql 
Sql :: postrgesql concat 2 columns divided by ; 
Sql :: oracle sql trigger select into 
Sql :: Find the names of sailors who have reserved a red boat, and list in the order of age 
Sql :: automate mysql cli query 
Sql :: inserted row count tsql 
Sql :: t sql first and last day of week 
Sql :: parent child hierarchy in sql 
Sql :: sql round datetime 
Sql :: sql lowest number possible 
Sql :: oracle kill sessions script 
Sql :: where name ends in SQL 
Sql :: what is 1=2 in sql 
Sql :: xampp mysql problem detected port 3306 in use by 
Sql :: python list from sql 
Sql :: test connection to sql server 
Sql :: how to define a non primary composite key in sql 
Sql :: insert into 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =