sqlite语句order by column (为字符类型),但是要以数字类型排列,怎么转换?
解决方法:将column字段 string类型转换为int类型
select* from Table order by CAST(column as int)
2022-10-06 14:24:54
sqlite语句order by column (为字符类型),但是要以数字类型排列,怎么转换?
解决方法:将column字段 string类型转换为int类型
select* from Table order by CAST(column as int)