I am new to SQL and need to figure out how to insert coulmns into two tables that are linked by a primary key.
I tried:
INSERT INTO tableone(data1, data2, data,3)
VALUES (1,2,3);
INSERT INTO tabletwo(data1, data4, data,5)
VALUES (1,7,8)
This only inserts the data in tableone. table two errors out with a primary key error.
Any help is much appreciated.
Start Free Trial