I want to select the inverse of a data range in a postgres database: the query i am trying to use is
SELECT *
FROM projects
WHERE lastactivity BETWEEN 2015-08-3 AND 2015-09-11
Use NOT
operator in your BETWEEN
condition like
SELECT *
FROM projects
WHERE lastactivity NOT BETWEEN 2015-08-3 AND 2015-09-11;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.