龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 数据库类 > Sql Server开发 >

如何判断sql字段中存在中文字符?

时间:2013-01-03 18:08来源:未知 作者:admin 点击:
分享到:

如何判断sql字段中存在中文字符?

 代码如下
declare @t table([Name] nvarchar(10)) insert @t select '好的啊!' insert @t select '12345好的' insert @t select '123' insert @t select 'sdff' select * from @t where PATINDEX('%[吖-座]%',[name])>0 /* Name        ----------  好的啊! 12345好的  (所影响的行数为 2 行)*/

 


精彩图集

赞助商链接