I am writing a program that needs to delete data across multiple tables.
is there a way with a SQL command to delete records from more than one table.
this is what i am trying to do:
DELETE FROM REQUESTS, REQUEST_ITEMS WHERE REQUESTS.REQID = 1 and REQUEST_ITEMS.REQID = 1;
but I keep getting errors. I am using Oracle 9i.
I can't change the way the database works, so please only answers that wuld have a solution with SQL.
You should be getting errors. You can only delete from one table at a time. That is how Oracle works.
Why does the delete have to be in or on one line?
I guess I don't really need the delete in a single statement.
Thanks for the quick reply.
Click Here to Expand Forum to Full Width