manual.texi add LIKE example illustrating case sensitivity.

This commit is contained in:
paul@central.snake.net 2001-06-27 18:21:42 -05:00
parent f6cfc8a80d
commit a3208140f9
2 changed files with 11 additions and 0 deletions

View File

@ -6,3 +6,4 @@ paul@teton.kitebird.com
monty@hundin.mysql.fi
sasha@mysql.sashanet.com
monty@work.mysql.com
paul@central.snake.net

View File

@ -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}.)