ExampleGet your own SQL Server Convert a value to an int datatype: SELECTCAST(25.65ASint); Try it Yourself » Definition and Usage The CAST() function converts a value (of any type) into a specified datatype. Tip:Also look at theCONVERT()function. ...
MySQLCAST()Function ❮Previous❮ MySQL FunctionsNext❯ Example Convert a value to a DATE datatype: SELECTCAST("2017-08-29"ASDATE); Try it Yourself » Definition and Usage The CAST() function converts a value (of any type) into the specified datatype. ...