sqlite 字符串 转 整型 cast 函数 (强制类型转换 )

sqlite 字符串 转 整型使用 cast 函数

语法: cast(col_name as type)

例子:

表:JobInfo

表内字段:Salary  薪水

select * from JobInfo where cast(substr(Salary,1,5)as int)>10000

结果集:

 

 

posted @ 2013-12-08 19:15  ygm900  阅读(17883)  评论(0编辑  收藏  举报