Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Case sensitive in select queries ??

Former Member
0 Likes
795

Hi All,

I need to write a query which will search for all case(Upper or lower or Upper+lower) of a string .

I have googled and searched through sdn and found lot of links and documents for case insensitive search and i didn't found final solution..

Please help with helpful suggestions .

Regards,

Lokeswar Reddy Byni

Hi All,

I need to write a query which will search for all case(Upper or lower or Upper+lower) of a string .

I have googled and searched through sdn and found lot of links and documents for case insensitive search and i didn't found final solution..

Please help with helpful suggestions .

Regards,

Lokeswar Reddy Byni

3 REPLIES 3
Read only

Former Member
0 Likes
758

In most cases SQL is case sensitive. But this really depends on your collation and you DB used in background. However, in most DB systems there is some kind of a lower() function. so you could do something like:


SELECT *

FROM my_table

WHERE lower(my_tyble.field) = 'myString';

(This is really pseudo code. You should check for you scenario before ... )

On some DB with some collation you don't need to do this, as it's per default non-case sensitive. HTH

Read only

rosenberg_eitan
Active Contributor
0 Likes
758

Hi,

Native SQL to the rescue.

See

and program ADBC_QUERY .

Regards.

Read only

0 Likes
758

This message was moderated.