mustino: Dateproblem

Beitrag lesen

Hallo,

ich nutze die Datenbank MySql und als Programmiersprache PHP. Ich versuche verzweifelt eine Tabelle anzulegen, mit dem Typ DATE. Obwohl ich nach der MySql-Dokumentation aggierend das Format YYYY-MM-DD einstelle, bekomme ich trotzdem eine Fehlermeldung.

Meine MySQL-Befehl lautet:

CREATE TABLE test (

ersterwert INT( 3 ) DEFAULT '44' NOT NULL ,
zweiterwert DATE( YYYY-MM-DD ) NOT NULL
) ;

Die Fehlermeldung lautet daraufhin:
ERROR 1064: 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 '( YYYY-MM-DD ) NOT NULL
)' at line 4

Was mache ich falsch? In der MySQL-Doku wird das Format so vorgegeben oder?

Gruß

mustino