C
chino
Hi
I have two tables linking through a unique identifier
(id).
info and pinfo. I want to delete certain records from
both where info.date < 01/01/2003 and info.type = "Vr1"
Pinfo contains information relating to the records i wish
to delete, which means i need to delete from there too.
I tried the following sql:
delete * from pinfo, info
where pinfo.id = info.id
and info.date < 01/01/2003
and info.type = "Vr1"
I know now that this does not work and i may need to do a
cascade delete, can anyone help with this?
Thanks
I have two tables linking through a unique identifier
(id).
info and pinfo. I want to delete certain records from
both where info.date < 01/01/2003 and info.type = "Vr1"
Pinfo contains information relating to the records i wish
to delete, which means i need to delete from there too.
I tried the following sql:
delete * from pinfo, info
where pinfo.id = info.id
and info.date < 01/01/2003
and info.type = "Vr1"
I know now that this does not work and i may need to do a
cascade delete, can anyone help with this?
Thanks