+ 2

WHERE statement

For example: WHERE ‘New York’ Is New York case-sensitive?

10th Apr 2018, 4:56 AM
Safwan Sidek
Safwan Sidek - avatar
10 Answers
0
yes it is, if you don't want case sensitiveness you can apply this functions: where LOWER (table.name) = LOWER ('New York') ----- where UPPER (table.name)=UPPER ('New York') And if you want to remove white spaces: search for the TRIM-function
10th Apr 2018, 6:04 AM
***
*** - avatar
+ 5
It depends on the collation of the database. In Microsoft SQL Server, it's case insensitive by default with SQL_Latin1_General_CP1_CI_AS.
10th Apr 2018, 8:10 AM
Zephyr Koo
Zephyr Koo - avatar
+ 2
Maria Rodriguez then your statement is not correct, you said: WHERE city = 'New York'; where city = 'new york'; Yes it doesn't matter if you write WHERE upper or lower case. But it DOES matter if you write NEW YORK, New York or new york. (unless you use the SQL upper or lower functions of course)
28th Apr 2018, 6:56 PM
***
*** - avatar
+ 1
Yes must B case-sensitive
24th Oct 2019, 9:36 PM
Nasrat Nasati
Nasrat Nasati - avatar
0
yes
10th Apr 2018, 5:17 AM
Kytis Hong
Kytis Hong - avatar
0
Sql is case insensitive. Also the correct statement would be WHERE city=‘New York’; this will give you the same result as typing where city=‘new york’;
28th Apr 2018, 6:40 PM
Maria Rodriguez
Maria Rodriguez - avatar
0
Maria Rodriguez it would not return the same result since you typed first New York with uppercase and then new york without uppercase. That's what you meant with SQL is case sensitive, but it is just a typo i guess
28th Apr 2018, 6:46 PM
***
*** - avatar
0
I meant sql is case insensitive. Not a typo
28th Apr 2018, 6:48 PM
Maria Rodriguez
Maria Rodriguez - avatar
0
yes it is case sensitive and it depends upon the value in table
19th May 2018, 5:47 AM
Ritesh Bharti
Ritesh Bharti - avatar
- 2
tape spase 4 times
10th Apr 2018, 4:19 PM
arcado
arcado - avatar