2015-09-11 44 views
0

我想選擇一個Postgres數據庫中的數據範圍的逆逆: 我試圖使用查詢的選擇PSQL之間

SELECT * 
FROM projects 
WHERE lastactivity BETWEEN 2015-08-3 AND 2015-09-11 
+4

WHAT NOT lastactivity BETWEEN ...? – Biscuits

回答

1

使用NOT運營商在BETWEEN條件像

SELECT * 
FROM projects 
WHERE lastactivity NOT BETWEEN 2015-08-3 AND 2015-09-11;