30
Jun
Posted by krisgale as syntax, mysql
hadn’t filled in some code i was completing and within it was a sql statement of the form:
INSERT INTO TableName () VALUES ();
to my surprise, this is valid syntax, and inserted a row with a correct auto_increment for the primary key, and null or defaults for the remaining columns.
RSS feed for comments on this post · TrackBack URI
Leave a reply