【问题标题】:How do I select rows where a column value starts with a certain string?如何选择列值以某个字符串开头的行?
【发布时间】:2012-07-05 06:54:05
【问题描述】:

如何选择列值以某个字符串开头的行?

例如,我想选择“姓名”列以“先生”开头的行。

【问题讨论】:

    标签: sql sqlite


    【解决方案1】:

    你可以的

    select * from mytable where name like "Mr.%"
    

    http://www.sqlite.org/lang_expr.html

    【讨论】:

      猜你喜欢
      • 2016-05-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-11
      • 2018-08-15
      • 2020-05-12
      • 2014-12-02
      • 2015-08-30
      相关资源
      最近更新 更多