📣
TiDB Cloud Premium
is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads.
Try it out →
Ask AI
Sign In
Start for Free
Product
AI
Developer
Best Practices
API
Releases
Ask AI
Sign In
Start for Free
English
Logical Operators
Contribute
Copy as Markdown
View as Markdown
Operator
Description
Example
Result
AND
Matches both expressions (
a
and
b
)
1 AND 1
TRUE
NOT
Does not match the expression
NOT 1
FALSE
OR
Matches either expression
1 OR 0
TRUE
Was this page helpful?
Yes
No
ON THIS PAGE