How do I use regex in a SQLite query?

后端 未结 17 1724
暖寄归人
暖寄归人 2020-11-22 05:57

I\'d like to use a regular expression in sqlite, but I don\'t know how.

My table has got a column with strings like this: \"3,12,13,14,19,28,32\" Now if I type \"whe

17条回答
  •  無奈伤痛
    2020-11-22 06:19

    I don't it is good to answer a question which was posted almost an year ago. But I am writing this for those who think that Sqlite itself provide the function REGEXP.

    One basic requirement to invoke the function REGEXP in sqlite is
    "You should create your own function in the application and then provide the callback link to the sqlite driver".
    For that you have to use sqlite_create_function (C interface). You can find the detail from here and here

提交回复
热议问题