mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
manual.texi Update description of logical AND. (In 3.23.9, it changed
manual.texi behavior to return NULL, not zero, if either operand is NULL)
This commit is contained in:
parent
bd3421c45b
commit
5cabfa201b
1 changed files with 7 additions and 4 deletions
|
@ -30526,13 +30526,16 @@ mysql> SELECT 1 || NULL;
|
|||
@findex && (logical AND)
|
||||
@item AND
|
||||
@itemx &&
|
||||
Logical AND. Returns @code{0} if either argument is @code{0} or @code{NULL},
|
||||
otherwise returns @code{1}:
|
||||
Logical AND. For non-@{NULL} operands, returns @code{1} if both operands are
|
||||
non-zero and @code{0} otherwise.
|
||||
Returns @code{NULL} if either argument is @code{NULL}:
|
||||
@example
|
||||
mysql> SELECT 1 && NULL;
|
||||
-> 0
|
||||
mysql> SELECT 1 && 1;
|
||||
-> 1
|
||||
mysql> SELECT 1 && 0;
|
||||
-> 0
|
||||
mysql> SELECT 1 && NULL;
|
||||
-> NULL
|
||||
@end example
|
||||
@end table
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue