Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

cast in sql server

-- For Sql server
SELECT CAST(25.65 AS int);
/*
CAST(<value_to_cast> AS <data_type_to_cast_to>)
*/
Source by www.mssqltips.com #
 
PREVIOUS NEXT
Tagged: #cast #sql #server
ADD COMMENT
Topic
Name
2+6 =