sqlite 字符串 转 整型 cast 函数 (强制类型转换 )
sqlite 字符串 转 整型使用 cast 函数
语法: cast(col_name as type)
例子:
表:JobInfo
表内字段:Salary 薪水
select * from JobInfo where cast(substr(Salary,1,5)as int)>10000
结果集:

sqlite 字符串 转 整型使用 cast 函数
语法: cast(col_name as type)
例子:
表:JobInfo
表内字段:Salary 薪水
select * from JobInfo where cast(substr(Salary,1,5)as int)>10000
结果集:
