CAST(expr AS type), CONVERT(expr,type), CONVERT(expr USING transcoding_name)
.....
The CAST() 和 CONVERT() 转换后的可用类型如下:
BINARY[(N)]
CHAR[(N)]
DATE
DATETIME
DECIMAL
SIGNED [INTEGER]
TIME
UNSIGNED [INTEGER]
转载请注明:谷谷点程序 » MySQL数据类型转换