由于安装时候,采用了默认的排序方式,所有不会区分大小写。
创建数据库时:
create database test COLLATE Chinese_PRC_CS_AS
修改数据库:
alter database test COLLATE Chinese_PRC_CS_AS
创建表:
Create table test(tid int primary key,tname varchar(20) collate chines_prc_cs_as)
查询某一条:
select * from test where tname collate Chinese_PRC_CS_AS like 'a%'
不区分大小写:collate Chinese_PRC_CI_AS