Random Hadith

'Aayeshah Radiyallahu 'Anaha narrates: "After witnessing the difficulties experienced by Rasulullah Sallallahu 'Alayhi Wasallam, I do not doubt that anyone does not experience difficulties at the time of death". Commentary Intense illness [+] [Tirmidhi 053:004 (371)]

Mutiara Hati

So much of life, it seems to me, is determined by pure randomness. - Sidney Poitier

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% [?]

10 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="" highlight="">

CommentLuv badge
[+] kaskus emoticons nartzco
What is 0 + 10 ?
Please leave these two fields as-is: