Newbie nih nanya dunk...
Kenapa ga seperti ini?

Delete from domisili where no_id=11107070001;
Delete from penduduk where no.id=11107070001;

lalu diexecute bareng2...

sepertinya delete tidak bisa diperlakukan seperti select dan update.. soalnya 
saya gunakan join juga tidak bisa... mungkin master2 oracle ada pencerahan?

Regards

Riani


________________________________
From: Padang Nadimpu <[email protected]>
To: [email protected]
Sent: Wed, November 18, 2009 7:01:11 PM
Subject: [indo-oracle] Hapus data pd 2 table scr bersama

  
Ada 2 table, misalnya data domisili dan penduduk.
Pada kedua table terdpt no_id  yg sama.
Sy coba script hapus seperti di bawah ini :

SQL>DELETE from domisili x, penduduk y WHERE x.no_id=y.no_ id and 
x.no_id=11107070001 ;
DELETE from domisili  x, from penduduk y WHERE x.no_id=y.no_ id and 
x.no_id=11107070001 ;
*
ERROR at line 1:
ORA-00933: SQL command not properly ended

Mohon koreksi/solusi agar dpt menghapus data pada 2 table scr bersama

Best Request


 


      

[Non-text portions of this message have been removed]

Kirim email ke