Delete problem
Posted by:
jody salt
Date: January 24, 2005 10:08AM
If use the following code:
delete from foo, bar using foo, bar;
and both table foo and bar contain some rows, all the contents will be deleted.
NOW!
if one table doesn't contain any rows (e.g. foo) and one table does eg (bar) nothing will be deleted. However I want a single (delete) statement that will delete any of the rows in two different tables regardless of whether one table doesn't have any rows or not.
Any ideas??
This ones got me stumped!
Cheers
Jody
Subject
Written By
Posted
Delete problem
January 24, 2005 10:08AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.