I have a table like this:
TITLE | DESCRIPTION ------------------------------------------------ test1 | value blah blah value test2
try this:
select TITLE, (length(DESCRIPTION )-length(replace(DESCRIPTION ,'value','')))/5 as COUNT FROM SQL Fiddle Demo 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题