Question
JOIN DELETE - SQL
Is it possible to use a JOIN to delete multiple rows from
multiple tables
using a common key?
Lets say I have 3 tabels (Info, Guests, Host) and they all share a common
column (show_id). I want to remove all the records from each table that have
the same 'show_id'.
DELETE FROM Info, Guests, Hosts
WHERE show_id = #URL.show_id#
Will this work? I don't have a live database to work with at the moment and
I want to start the CFCs for it and came across this situation.
Thanks
using a common key?
Lets say I have 3 tabels (Info, Guests, Host) and they all share a common
column (show_id). I want to remove all the records from each table that have
the same 'show_id'.
DELETE FROM Info, Guests, Hosts
WHERE show_id = #URL.show_id#
Will this work? I don't have a live database to work with at the moment and
I want to start the CFCs for it and came across this situation.
Thanks