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

语法: cast(col_name as type)

例子:

表:JobInfo

表内字段:Salary  薪水

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

结果集:

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

 

 

相关文章:

  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
  • 2021-05-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2021-08-02
  • 2021-07-28
  • 2022-12-23
相关资源
相似解决方案