将字段*1或者加0 可以变成数值
例如:
一 select * from table where 1 order by id+0 desc 按id对应的数值降排
二 select * from table where 1 order by id*1 asc 按id对应的数值升排
将字段*1或者加0 可以变成数值
例如:
一 select * from table where 1 order by id+0 desc 按id对应的数值降排
二 select * from table where 1 order by id*1 asc 按id对应的数值升排