Proper Delete From syntax ? -
08-27-2003
, 09:14 AM
This is a 7.2 database. I am trying to test this, but having resource
troubles, and running out of time. I want to delete rows from
myschema.mytable1, but only the rows that meet the following condition. I
have structured the SQL using a correlated reference. Is this right, or
will I delete more than meets the subquery condition ?
delete from a where
(select a.host_id, a.field2, a.field3, a.field4 from
myschema.mytable1 a,
myschema.mytable2 b
where
a.host_id=b.host_id and a.field2=b.field2 and
b.field3=b.field3 and a.field4=b.field4)
Thanks,
Scott |