Commit f20dda3e authored by unknown's avatar unknown

manual.texi Operators are operators, not functions, so they take

manual.texi	operands, not arguments.


Docs/manual.texi:
  Operators are operators, not functions, so they take
  operands, not arguments.
parent 36138448
...@@ -30479,10 +30479,10 @@ mysql> SELECT "a" ="A "; ...@@ -30479,10 +30479,10 @@ mysql> SELECT "a" ="A ";
@node Logical Operators, Control flow functions, Comparison Operators, Non-typed Operators @node Logical Operators, Control flow functions, Comparison Operators, Non-typed Operators
@subsubsection Logical Operators @subsubsection Logical Operators
@findex Logical functions @findex Logical operators
@findex Functions, logical @findex Operators, logical
All logical functions return @code{1} (TRUE), @code{0} (FALSE) or All logical operators evaluate to @code{1} (TRUE), @code{0} (FALSE) or
@code{NULL} (unknown, which is in most cases the same as FALSE): @code{NULL} (unknown, which is in most cases the same as FALSE):
@table @code @table @code
...@@ -30490,9 +30490,9 @@ All logical functions return @code{1} (TRUE), @code{0} (FALSE) or ...@@ -30490,9 +30490,9 @@ All logical functions return @code{1} (TRUE), @code{0} (FALSE) or
@findex ! (logical NOT) @findex ! (logical NOT)
@item NOT @item NOT
@itemx ! @itemx !
Logical NOT. Returns @code{1} if the argument is @code{0}, otherwise returns Logical NOT. Evaluates to @code{1} if the operand is @code{0}, otherwise
@code{0}. evaluates to @code{0}.
Exception: @code{NOT NULL} returns @code{NULL}: Exception: @code{NOT NULL} evaluates to @code{NULL}:
@example @example
mysql> SELECT NOT 1; mysql> SELECT NOT 1;
-> 0 -> 0
...@@ -30503,14 +30503,14 @@ mysql> SELECT ! (1+1); ...@@ -30503,14 +30503,14 @@ mysql> SELECT ! (1+1);
mysql> SELECT ! 1+1; mysql> SELECT ! 1+1;
-> 1 -> 1
@end example @end example
The last example returns @code{1} because the expression evaluates The last example produces @code{1} because the expression evaluates
the same way as @code{(!1)+1}. the same way as @code{(!1)+1}.
@findex OR, logical @findex OR, logical
@findex || (logical OR) @findex || (logical OR)
@item OR @item OR
@itemx || @itemx ||
Logical OR. Returns @code{1} if either argument is not @code{0} and not Logical OR. Evaluates to @code{1} if either operand is not @code{0} and not
@code{NULL}: @code{NULL}:
@example @example
mysql> SELECT 1 || 0; mysql> SELECT 1 || 0;
...@@ -30526,9 +30526,9 @@ mysql> SELECT 1 || NULL; ...@@ -30526,9 +30526,9 @@ mysql> SELECT 1 || NULL;
@findex && (logical AND) @findex && (logical AND)
@item AND @item AND
@itemx && @itemx &&
Logical AND. For non-@{NULL} operands, returns @code{1} if both operands are Logical AND. For non-@code{NULL} operands, evaluates to @code{1} if both
non-zero and @code{0} otherwise. operands are non-zero and to @code{0} otherwise.
Returns @code{NULL} if either argument is @code{NULL}: Produces @code{NULL} if either operand is @code{NULL}:
@example @example
mysql> SELECT 1 && 1; mysql> SELECT 1 && 1;
-> 1 -> 1
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