SqlServer操作笔记

获取列中某个字符的个数

--逗号的个数
SELECT LEN(列)-LEN(REPLACE(列, ',', '')) as ss FROM 表

 

posted @ 2022-05-25 16:40  微风吹过~  阅读(26)  评论(0编辑  收藏  举报