我有一个这样的字符串:
i would like to go to office, and i would like to go to market
我的问题是:字符串like
出现多少次?
请写一个查询。
答案 0 :(得分:2)
您可以使用regexp_count
:
SELECT REGEXP_COUNT('i like to go , and i would like market', 'like')
FROM DUAL;
答案 1 :(得分:0)
单词“like”在您发布的字符串中出现两次。
以下是查询:
SELECT *
FROM SOME_TABLE
WHERE SOME_VALUE = SOME_OTHER_VALUE
分享并享受。