select * from useid order by cast(qx as Float) DESC
useid是个表明
qx是char(50) 类型的字段提示错误
:check the manual that corresponds to your MySQL server version for the right syntax to use near 'Float) DESC' at line 1
useid是个表明
qx是char(50) 类型的字段提示错误
:check the manual that corresponds to your MySQL server version for the right syntax to use near 'Float) DESC' at line 1
float类型不能用在这里。CAST() 和CONVERT() 函数可用来获取一个类型的值,并产生另一个类型的值。 这个类型 可以是以下值其中的 一个: BINARY[(N)]
CHAR[(N)]
DATE
DATETIME
DECIMAL
SIGNED [INTEGER]
TIME
UNSIGNED [INTEGER]