|
truwebs -> Insert to Parent and Child Table SQL Statement (4/12/2007 10:23:33)
|
Can somebody direct me on proper syntax of SQL statement to insert into one table that has child table in a relational database? I can get the insert to work for the Parent, but a record also needs to be inserted into the Child. Below is an example of my tables. I get Table 1 to insert no problem. What I need is table 2 to populate based on the catID from table 1 which is primarty key and selected imgID from table 3. Thanks for your help. EX. Table 1 catID imgID venID Table 2 catID imgID Table 3 imgID imgName
|
|
|
|