Quote:
Originally Posted by JHamill
... should I set the foreign key fields in the child table to auto-increment, or is this already dealt with because they are A_I is set in the parent table?
|
neither
first of all, you shouldn't make it an auto_increment, it'll get out of step immediately
but it isn't "taken care of" by the parent table, either
you actually have to specify the parent primary key value as a value to be inserted when you insert a child row