manual.texi add LIKE example illustrating case sensitivity.

parent f6cfc8a8
...@@ -6,3 +6,4 @@ paul@teton.kitebird.com ...@@ -6,3 +6,4 @@ paul@teton.kitebird.com
monty@hundin.mysql.fi monty@hundin.mysql.fi
sasha@mysql.sashanet.com sasha@mysql.sashanet.com
monty@work.mysql.com monty@work.mysql.com
paul@central.snake.net
...@@ -16690,6 +16690,16 @@ mysql> select 'David_' LIKE 'David|_' ESCAPE '|'; ...@@ -16690,6 +16690,16 @@ mysql> select 'David_' LIKE 'David|_' ESCAPE '|';
-> 1 -> 1
@end example @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} @code{LIKE} is allowed on numeric expressions! (This is a @strong{MySQL}
extension to the ANSI SQL @code{LIKE}.) extension to the ANSI SQL @code{LIKE}.)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment