I get the error from this line
SELECT table.field
FROM table
WHERE table.month = 'october'
AND DATEDIFF(day, table.start_date, table.end_date) < 30
The dates in my column are in the format m-d-yy
Do I need to convert this to a different format? If so how?
Using MariaDB
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…