Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含显示日期的数据库,其中包含今天的前几天和后几天我想过滤那些仅包含今天和下一个即将到来的日期但不包含前一个日期的日期。怎么能这样做
我写的sql有
SELECT Distinct(date) FROM `shows` WHERE movid='$id' ORDER BY date
SELECT Distinct(date) FROM `shows` WHERE date >= CURRENT_DATE()
SELECT Distinct(date) FROM `shows` WHERE movid='$id' AND date >= CURRENT_DATE() ORDER BY date