LIKE N'%[吖-咗]%' COLLATE Chinese_PRC_CI_AS
如何判断字段里是否包含中文 ------回答--------- ------其他回答(20分)--------- 上面错了declare @test table(N char(10)) insert @test select '张三' union all select 'Apple' union all select '李四' union all select 'Banana' union all select '赵六' union all select 'Orange' select n from @test where PATINDEX('%[吖-座]%',N)>0 ------其他回答(20分)---------
详见:SQLServer中文处理 ------回答--------- ------其他回答(20分)--------- 上面错了 declare @test table(N char(10)) insert @test select '张三' union all select 'Apple' union all select '李四' union all select 'Banana' union all select '赵六' union all select 'Orange' select n from @test where PATINDEX('%[吖-座]%',N)>0 ------其他回答(20分)---------
详见:SQLServer中文处理 |
|
来自: 小鱼儿363 > 《新知识20160608》