Important
New database features are no longer connected to engine versions; features are now enabled independently during scheduled update windows, and “major” and “minor” releases no longer exist in Helios. Please visit the release notes to view the latest features available in your database clusters.
BETWEEN, NOT BETWEEN
BETWEEN and NOT BETWEEN check if values are in or not in a range that includes the two endpoints (inclusive).
CREATE TABLE bet_r(t TEXT);INSERT bet_r VALUES("blue"), ("orange"), ("yellow");
SELECT * FROM bet_r WHERE t BETWEEN "blue" AND "pink";
+--------+
| t |
+--------+
| blue |
| orange |
+--------+Last modified: