Hiw to fast delete rows from table in relation?
I have two tables:
general:
hash = primary key
code
other
detail:
hash+index = primary key
other
I want delete all rows from general where code=:code and from detail where general.hash=detail.hash
First job is easy:
delete from general where code=:code
Ho do second?
delete from detail where hash = select hash from general where code=:code
?
delete from detail left join general on detail.hash=general.hash where general.code = :code
?
Subject
Views
Written By
Posted
Hiw to fast delete rows from table in relation?
1216
January 22, 2017 02:21AM
688
January 22, 2017 03:39AM
622
January 22, 2017 04:03AM
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.