当前位置:首页 - SQL

SQL判断某字符出现次数,小技巧

作者:高景洋 日期:2017-03-31 17:37:26 浏览次数:3570
SQL判断某字符出现次数

select LEN(RequestStatus)-LEN(REPLACE(RequestStatus,',',''))
from TableA
where EnteredDate >'2017-03-30' and EnteredDate<'2017-03-31' and Url like '%amazon.com%' and SuccChildrenCount>0
本文永久性链接:
<a href="http://r4.com.cn/art102.aspx">SQL判断某字符出现次数,小技巧</a>
当前header:Host: r4.com.cn X-Host1: r4.com.cn X-Host2: r4.com.cn X-Host3: 127.0.0.1:8080 X-Forwarded-For: 3.135.209.154 X-Real-Ip: 3.135.209.154 X-Domain: r4.com.cn X-Request: GET /art102.aspx HTTP/1.1 X-Request-Uri: /art102.aspx Connection: close Accept: */* User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) Cookie: aoji_session_uuid=da3ba7173d5e4d018652abcd6a6d0e9f_20241222; aoji_uuid=ec5d09c25a24429fb043ae2401844841_20241222 Accept-Encoding: gzip, br, zstd, deflate