SqlServer判断表中某列是否包含中文,英文,纯数字

时间:2020-12-07 12:23:40   收藏:0   阅读:10

1、字段包含中文

select * from table1 where 列名 like ‘%[吖-座]%‘

2.字段包含英文字符

select * from table1 where 列名 like ‘%[a-z]%‘ 

3.字段包含纯数字

select * from table1 where 列名 like ‘%[0-9]%‘

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!