举例数据库:Sql Server
在数据库检索或删选数据时有时需要根据大小写字母为条件检索,可以使用以下方法:
select * from 表名 where 字段名 collate chinese_prc_cs_as_ws like 'A%'
select * from 表名 where 字段名 collate chinese_prc_cs_as_ws like 'a%'
即:在检索条件字段名后加上 collate chinese_prc_cs_as_ws
举例数据库:Sql Server
在数据库检索或删选数据时有时需要根据大小写字母为条件检索,可以使用以下方法:
select * from 表名 where 字段名 collate chinese_prc_cs_as_ws like 'A%'
select * from 表名 where 字段名 collate chinese_prc_cs_as_ws like 'a%'
即:在检索条件字段名后加上 collate chinese_prc_cs_as_ws