> So I do: > SELECT * FROM table1 WHERE datum BETWEEN ('0000-00-00' + INTERVAL 1 DAY) AND '2002-03-10'; > MySQL returns an empty result set, but it shouldn't (the table contains dates year 2000 and up.
MySQL refers to the date 0000-00-00 as null. Null+1 is null. Why don't you rewrite the query as SELECT * FROM table1 WHERE datum <= '2002-03-10' ? If you can't do that, using a valid date like '1900-01-01' instead of '0000-00-00' should work. --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php