我需要在两个给定日期之间生成带有MYSQl的日期列表,并且此日期列表必须过滤对应于星期二和星期四天的日期。有可能吗?
答案 0 :(得分:0)
与此同时,您可以使用以下示例:
-- TO SELECT DATES IN A GIVEN RANGE
-- THAT DO NOT FALL ON A TUESDAY AND THURSDAY
SELECT dateColumn
FROM yourTable
WHERE DAYOFWEEK(dateColumn) NOT IN (3,5)
AND dateColumn BETWEEN '2011-01-01' and '2011-12-31';
答案 1 :(得分:0)