sql 字符串长度

来源:互联网 发布:大数据概念的首次提出 编辑:程序博客网 时间:2024/05/17 21:55


select * from PR_Practitioner where PracTypeCodes like '%,%,%'

查询字符串长度大于11的:

select COUNT(*) from PR_Practitioner where len(PracTypeCodes)>=11


select COUNT(*) from 
(select Prac.PracId from PR_Practitioner prac,PR_PracQualification pq
where prac.PracId=pq.PracId
group by prac.PracId
having COUNT(*)>=3) A

0 0
原创粉丝点击