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

更新时间:2017-08-17    来源:中文酷站    手机版     字体:

【www.bbyears.com--中文酷站】

如何判断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 行)*/

 

本文来源:http://www.bbyears.com/kuzhan/34901.html

热门标签

更多>>

本类排行