Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
438e3deb
Commit
438e3deb
authored
May 14, 2002
by
paul@teton.kitebird.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manual.texi Operators are operators, not functions, so they take
manual.texi operands, not arguments.
parent
5cabfa20
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
Docs/manual.texi
Docs/manual.texi
+11
-11
No files found.
Docs/manual.texi
View file @
438e3deb
...
...
@@ -30479,10 +30479,10 @@ mysql> SELECT "a" ="A ";
@node Logical Operators, Control flow functions, Comparison Operators, Non-typed Operators
@subsubsection Logical Operators
@findex Logical
function
s
@findex
Function
s, logical
@findex Logical
operator
s
@findex
Operator
s, 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):
@table @code
...
...
@@ -30490,9 +30490,9 @@ All logical functions return @code{1} (TRUE), @code{0} (FALSE) or
@findex ! (logical NOT)
@item NOT
@itemx !
Logical NOT.
Returns @code{1} if the argument is @code{0}, otherwise returns
@code{0}.
Exception: @code{NOT NULL}
returns
@code{NULL}:
Logical NOT.
Evaluates to @code{1} if the operand is @code{0}, otherwise
evaluates to
@code{0}.
Exception: @code{NOT NULL}
evaluates to
@code{NULL}:
@example
mysql> SELECT NOT 1;
-> 0
...
...
@@ -30503,14 +30503,14 @@ mysql> SELECT ! (1+1);
mysql> SELECT ! 1+1;
-> 1
@end example
The last example
return
s @code{1} because the expression evaluates
The last example
produce
s @code{1} because the expression evaluates
the same way as @code{(!1)+1}.
@findex OR, logical
@findex || (logical OR)
@item OR
@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}:
@example
mysql> SELECT 1 || 0;
...
...
@@ -30526,9 +30526,9 @@ mysql> SELECT 1 || NULL;
@findex && (logical AND)
@item AND
@itemx &&
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}:
Logical AND. For non-@
code{NULL} operands, evaluates to @code{1} if both
operands are non-zero and to
@code{0} otherwise.
Produces @code{NULL} if either operand
is @code{NULL}:
@example
mysql> SELECT 1 && 1;
-> 1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment