I have two tables...
both of them have first field as autoincremented numeric key
and second field as user id of the person...
i want to make sure when data is inserted into row 1 of table1, the relevant data also gets inserted in row 1 of table2. In other words, I want to make sure that if two rows of these two tables have the same primary key (that autoincrement int), then they both are pointing to information of the same person...
i looked into foreign key... I could not figure out a way to achieve what I want to using foreign key...
both of them have first field as autoincremented numeric key
and second field as user id of the person...
i want to make sure when data is inserted into row 1 of table1, the relevant data also gets inserted in row 1 of table2. In other words, I want to make sure that if two rows of these two tables have the same primary key (that autoincrement int), then they both are pointing to information of the same person...
i looked into foreign key... I could not figure out a way to achieve what I want to using foreign key...
Comment