Hi,
Im Prinzip will ich, dass kein Datensatz gespeichert werden darf, wenn k_checksum keinen Wert hat, d.h. NULL ist. Ich dachte, dass dies mit NOT NULL so ohne weiteres möglich sein sollte.
Übergibst du denn explizit NULL für die Spalte im INSERT-Statement?
Wenn nicht - http://dev.mysql.com/doc/refman/5.1/en/insert.html:
If you want an INSERT statement to generate an error unless you explicitly specify values for all columns that do not have a default value, you should use strict mode.
MfG ChrisB
--
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]