myBlog

MySQL update from select

update
      tabel_1, tabel2
set 
      tabel_1.nama = tabel_2.nama
      <, tabel_1.dob = tabel_2.dob>
where
      tabel_1.kode = tabel_2.kode  
      < and tabel_1.nomor = tabel_2.nomor>

 

Leave a comment »