SQLSTATE[42601]: Syntax error: 7

Habe ich somethink in meiner PostgreSQL insert-Anfrage nicht richtig.
Wenn ich ausführen:

INSERT  INTO data
        ( Email ,
          Email_MD5 ,
          Date_In ,
          Tel_mobile ,
          Tel_fixe ,
          Gender ,
          Title ,
          FirstName ,
          LastName ,
          DateOfBirth ,
          YearOfBirth ,
          AgeGroupe ,
          Adresse_1 ,
          Adresse_2 ,
          CP ,
          Ville ,
          Domain ,
          Groupe_Domaine ,
          Last_Date_R ,
          Last_Date_O ,
          Last_Date_C ,
          Pression ,
          Activity ,
          R
        )
VALUES  ( "[email protected]" ,
          "b6ffc0c54f2c35866c4ccc4a7218472c" ,
          NULL ,
          "" ,
          "5789332" ,
          "MLLE" ,
          "" ,
          "Lydia" ,
          "Le Port" ,
          NULL ,
          NULL ,
          "26 - 35" ,
          "56" ,
          "56" ,
          "56400" ,
          "AURAY" ,
          "Bretagne" ,
          "" ,
          NULL ,
          NULL ,
          NULL ,
          "" ,
          "" ,
          ""
        );

PostgreSQL sagte:

SQLSTATE[42601]: Syntax error: 7 ERREUR: 
     identifiant délimité de longueur nulle sur ou près de « "" » LINE 5: "", ^
(Syntax error: 7 ERROR: syntax error at or near "")

Verstehe ich nicht, warum ? Ist "" falsch ?

  • ist Date_IN null-Werte zulässt?
InformationsquelleAutor Macbernie | 2014-07-07
Schreibe einen Kommentar