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
结果集:
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。