MySQL Forums
Forum List  »  German

Re: Insertfehler nach Datenbank wechsel
Posted by: Katja Kahl
Date: November 25, 2014 05:23AM

Halo Christian,
du versuchst einen leeren String '' deinem Primär-Schlüssel zuzuweisen.

Da die Spalte auto_increment ist, kannst du deine Daten ohne die Spalte wa_id übergeben, musst aber dafür die anderen Spalten explizit angeben:

INSERT INTO wascann (wa_nr,wa_kunde, wa_user_id, wa_start, wa_stop)
VALUES ('14TEST','5','1111','','');



P.S.: die String-Zuweisung für die Datetime-Felder ist auch nicht optimal.

Gruß Katja

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Insertfehler nach Datenbank wechsel
544
November 25, 2014 05:23AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.