Mega Code Archive

 
Categories / MySQL Tutorial / Cast Functions Operators
 

CAST() also changes the result if you use it as part of a more complex expression such as CONCAT(Date

mysql> mysql> SELECT CAST(1-2 AS UNSIGNED);