SqlServer中使用collate Chinese_PRC_CS_AS关键字便可完成区分大小写的查询,使用方式如下
1、查找name字段中含有大写K的记录
select * from 表名 where name collate Chinese_PRC_CS_AS like '%K%'
2、查找name字段中含有小写k的记录
select * from 表名 where name collate Chinese_PRC_CS_AS like '%k%'
SqlServer中使用collate Chinese_PRC_CS_AS关键字便可完成区分大小写的查询,使用方式如下
1、查找name字段中含有大写K的记录
select * from 表名 where name collate Chinese_PRC_CS_AS like '%K%'
2、查找name字段中含有小写k的记录
select * from 表名 where name collate Chinese_PRC_CS_AS like '%k%'