2014 Sep 22 9:29 AM
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
2014 Sep 22 9:34 AM
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
2014 Sep 22 9:41 AM
2014 Oct 06 8:16 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |