Mysql
 sql >> Database >  >> RDS >> Mysql

CAST nidificato non funzionante

Secondo il manuale :

Quindi, basta seguire il manuale:

SELECT CAST(CAST(myColumn AS DECIMAL(5,2)) AS SIGNED) FROM myTable

o

SELECT CAST(CAST(myColumn AS DECIMAL(5,2)) AS UNSIGNED) FROM myTable