Simone: Mysql und datum Auswertung

Beitrag lesen

Hallo,
Self Gemeinde

Ich habe eine einfache Frage :o) wo ich nicht weiterkomme

Fehler

SQL-Befehl :

SELECT *
FROM tageserfassung
WHERE datum_anz
between to_date( '2006-01-01', 'yyyy-mm-dd' ) AND to_date( '2006-01-31', 'yyyy-mm-dd' )
LIMIT 0, 30

MySQL meldet:

You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near '('2006-01-01', 'yyyy-mm-dd') AND to_date ('2006-01-31', 'yyyy-m

Struktur:
Feld        | Typ     | Standard
datum_anz   | DATE    | 0000-00-00

Warum dieser Query ein Fehler erzeugt ist mir unklar

Ich danke jetzt schon für die Antworten

Simone