Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何从SQLite单元格获取susbstring匹配的计数?_Sql_Sqlite - Fatal编程技术网

如何从SQLite单元格获取susbstring匹配的计数?

如何从SQLite单元格获取susbstring匹配的计数?,sql,sqlite,Sql,Sqlite,如果我有一个带有文本“Row your boat”的SQLite单元格,并且我想获得某个单词的计数,即“Row”=3,我将如何构造该查询 SQL中执行此操作的常用方法是使用length(): 看到这个了吗 select length(replace(lower(col), 'row', 'rowx')) - length(col)

如果我有一个带有文本“Row your boat”的SQLite单元格,并且我想获得某个单词的计数,即“Row”=3,我将如何构造该查询

SQL中执行此操作的常用方法是使用
length()

看到这个了吗
select length(replace(lower(col), 'row', 'rowx')) - length(col)