MySQL: Field 'id' doesn't have a default value

Posted by yanis on Stack Overflow See other posts from Stack Overflow or by yanis
Published on 2010-06-18T13:38:53Z Indexed on 2010/06/18 13:43 UTC
Read the original article Hit count: 209

I want MySQL to autogenerate the id of a table so I have set AutoIncrement to TRUE but I get "Field 'id' doesn't have a default value". I even set a default value (=1 although I dont want a default value) but I get the same error.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about default-value