NOT BETWEEN
This page is part of MariaDB's Documentation.
The parent of this page is: SQL Operators for MariaDB Enterprise Server
Topics on this page:
Overview
Not present within a range.
EXAMPLES
CREATE TABLE not_between_example (
v1 INT,
v2 INT
);
INSERT INTO not_between_example VALUES
(0, 9), (1, 8), (2, 7), (3, 6), (4, 5),
(5, 4), (6, 3), (7, 2), (8, 1), (9, 0);
SELECT * from not_between_example
WHERE v1 NOT BETWEEN 2 AND 7;
+------+------+
| v1 | v2 |
+------+------+
| 0 | 9 |
| 1 | 8 |
| 8 | 1 |
| 9 | 0 |
+------+------+
CHANGE HISTORY
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.