SQL CAST Function

SQL CAST Function 5

The SQL CAST Function converts an expression from one data type to another. If the SQL Server CAST function is unable to convert an expression into the desired data type, this function will return Error. The syntax of SQL Server CAST Function is  CAST (Expression AS Data_Type [(Length)]) — Cast in SQL example SELECT CAST (123 AS … Read more