+ 2
WHERE statement
For example: WHERE ‘New York’ Is New York case-sensitive?
10 Respostas
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
+ 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.
+ 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)
+ 1
Yes must B case-sensitive
0
yes
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’;
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
0
I meant sql is case insensitive. Not a typo
0
yes it is case sensitive and it depends upon the value in table
- 2
tape spase 4 times