Mega Code Archive

 
Categories / MSSQL Tutorial / Data Convert Functions
 

Select CONVERT (INTEGER , 123)

34> 35> --CONVERT(datatype[(length)],input_data[,style]) 36> 37> select CONVERT (INTEGER , '123') 38> GO -----------         123 (1 rows affected) 1>