Random Hadith

Humran. the freed slave of 'Uthman. said: I heard from 'Uthman b. 'Affan and he was in the courtyard of the mosque, when the Mu'adhdhin (announcer of the prayer) came [+] [Muslim 002:0438]

Mutiara Hati

Menuliskan tujuan akan sangat membantu dalam menjaga alasan melakukan sesuatu

Announcement

 

December 2009
M T W T F S S
« Nov   Jan »
 123456
78910111213
14151617181920
21222324252627
28293031  

Archives

Categories

Tags

free counters

QUERY: Insert data pada suatu tabel dari data pada tabel yang lain – MySQL

INSERT DATA PADA SUATU TABEL DARI DATA PADA TABEL YANG LAIN
INSERT DATA FROM ANOTHER TABLE

Dibawah ini adalah salah satu contoh untuk menambahkan data dari tabel yang lain.

INSERT INTO mspasien SELECT * FROM mspasien_stg 
WHERE noreg NOT IN (
  SELECT b.noreg
  FROM mspasien a, mspasien_stg b
  WHERE a.noreg = b.noreg );

Popularity: 3% [?]

9 comments to QUERY: Insert data pada suatu tabel dari data pada tabel yang lain – MySQL

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

CommentLuv Enabled
[+] kaskus emoticons nartzco