D
DIOS
I have three tables and I want to cycle through all the IDs in table1 and
then
delet any records in table2 and table3 that do not have a matching ID in
table1.
I was going to do the following:
For each record in table1
pId = table1 ID
send a SQL = "DELETE * FROM table2 WHERE table2.ID <> pID
send a SQL = "DELETE * FROM table3 WHERE table3.ID <> pID
next
Does that sound like the most efficient way to do this? Is there a shorthand
way to do this?
Thanx
AGP
then
delet any records in table2 and table3 that do not have a matching ID in
table1.
I was going to do the following:
For each record in table1
pId = table1 ID
send a SQL = "DELETE * FROM table2 WHERE table2.ID <> pID
send a SQL = "DELETE * FROM table3 WHERE table3.ID <> pID
next
Does that sound like the most efficient way to do this? Is there a shorthand
way to do this?
Thanx
AGP