【问题标题】:SQLite - How to replace string operators and convert it into integer value?SQLite - 如何替换字符串运算符并将其转换为整数值?
【发布时间】:2023-03-05 09:48:01
【问题描述】:

我有一个带点的字符串列。如何用 nothing("") 替换点?替换后,我想将此字符串转换为整数值。

例如:

1.450.753 (String)

1450753  (Integer)

【问题讨论】:

    标签: database sqlite


    【解决方案1】:
    SELECT * FROM Table WHERE CAST(replace(yourString,'.','') AS INTEGER) > otherValue
    

    我想这就是答案。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-07-02
      • 1970-01-01
      • 2016-08-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-21
      相关资源
      最近更新 更多