日期:2014-05-17 浏览次数:20509 次
create table temp(prod_name nvarchar(100))
insert into temp
select 'a' union all
select 'A'
select *
from temp
where prod_name = 'a' collate Chinese_PRC_CS_AS
/*
prod_name
a
*/
create table Temp(id int,A varchar(10))
insert into Temp(id,A)
select 1,'Book' union all
select 2,'pen' union all
select 3,'Phone' union all
select 4,'Bag' union all
select 5,'paper'
select id,A from Temp
where ascii(left(A,1)) between ascii('A') and ascii('Z')
/*
id A
----------- ----------
1 Book
3 Phone
4 Bag
(3 row(s) affected)
*/