我有三個表:刪除記錄
PERSON
-ID_PERSON
-NAME
-SURNAME
PERSON_ADDRESS
-ID_PERSON
-ID_ADDRESS
ADDRESS
-ID_ADDRESS
-NR_LOCAL
-NR_HOME
-PLACE
我想刪除與ADRESS表中的所有記錄,其中id_person = 1個
我的查詢(在Oracle)
DELETE * FROM address INNER JOIN person_addres ON
address.id_address=person_addres.id_address
WHERE person_addres.id_person=1 ;
我認爲你必須刪除'*' –
我在想,太... – endyourif
謝謝,我解決這個問題的方法(documenaction),謝謝。 – dexter90