Typecasting af boolesk til heltal:
SELECT CAST(1=1 AS SIGNED INTEGER); /* 1 */
Samme for decimaler og strenge:
SELECT CAST("1.23" AS SIGNED INTEGER); /* 1 */
Typecasting af boolesk til heltal:
SELECT CAST(1=1 AS SIGNED INTEGER); /* 1 */
Samme for decimaler og strenge:
SELECT CAST("1.23" AS SIGNED INTEGER); /* 1 */