saya punya table
1. mahasiswa
2. telepon
query untuk update field telepon pada tabel mahasiswa dengan referensi tabel telepon
update mahasiswa set telepon=(select telepon from telepon where nim=mahasiswa.nim)
1. mahasiswa
nim | nama | telepon |
2000420312 | TOMO | |
2001420123 | TONO | |
2002420123 | UTOMO |
nim | telepon |
2000420312 | 0315911408 |
2001420123 | 0315911474 |
2002420123 | 0321321654 |
update mahasiswa set telepon=(select telepon from telepon where nim=mahasiswa.nim)
2 komentar:
Thanks ilmu nya gan ..:)
okey makasih dah berkunjung...
Posting Komentar