Case insensitive search without using a function in the where clause

0

Please login or register to vote for this query.

(click on this box to dismiss)

Emacs

Q&A for for those using, extending or developing emacs

declare @t as table(
  [value] varchar(100)
);
insert into @t([value])
select 'abc' union all
select 'ABC' union all
select 'pqr' union all
select 'PQRST' union all
select 'xyz';

select * from @t
where [value] = 'abc';


select * from @t
where [value] = 'ABC' collate SQL_Latin1_General_CP1_CS_AS;

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results