This requires two separate insert queries. This can be done with two queries strung and executed together (separated by a ";") like this:
INSERT INTO MyTable1(...) VALUES(...); INSERT INTO MyTable2(...) VALUES(...)
Or, as Doug suggests, put them together in a stored procedure. This also allows you to make the insert transactional.
-Peter
|