manual.texi add LIKE example illustrating case sensitivity.
This commit is contained in:
parent
f6cfc8a80d
commit
a3208140f9
@ -6,3 +6,4 @@ paul@teton.kitebird.com
|
||||
monty@hundin.mysql.fi
|
||||
sasha@mysql.sashanet.com
|
||||
monty@work.mysql.com
|
||||
paul@central.snake.net
|
||||
|
@ -16690,6 +16690,16 @@ mysql> select 'David_' LIKE 'David|_' ESCAPE '|';
|
||||
-> 1
|
||||
@end example
|
||||
|
||||
The following two statements illustrate that string comparisons are
|
||||
case insensitive unless one of the operands is a binary string:
|
||||
|
||||
@example
|
||||
mysql> select 'abc' LIKE 'ABC';
|
||||
-> 1
|
||||
mysql> SELECT 'abc' LIKE BINARY 'ABC';
|
||||
-> 0
|
||||
@end example
|
||||
|
||||
@code{LIKE} is allowed on numeric expressions! (This is a @strong{MySQL}
|
||||
extension to the ANSI SQL @code{LIKE}.)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user