Kangkam

Kamis, Juli 01, 2010

MySQL : Merge two tables

using phpMyAdmin :

  1. select database
  2. create new table (note that the new table should have the same structure as the table that we want to merge)
  3. go to the SQL menu and type in the sql box :

    INSERT IGNORE
    INTO table_1
    SELECT *
    FROM table_2
    ;
















    doh !

    source : http://stackoverflow.com/questions/725556/how-can-i-merge-two-mysql-tables

at 14.11
Kirimkan Ini lewat Email BlogThis! Bagikan ke X Berbagi ke Facebook
Labels: database, import mysql, kangkam, merged, phpmyadmin, programmer, programming, table, windows, windows xp

0 comments:

Posting Komentar

Posting Lebih Baru Posting Lama Beranda
Langganan: Posting Komentar (Atom)

Arsip Blog

  • ►  2012 (1)
    • ►  Januari (1)
  • ►  2011 (39)
    • ►  November (3)
    • ►  September (1)
    • ►  Agustus (3)
    • ►  Juli (5)
    • ►  Juni (5)
    • ►  Mei (1)
    • ►  April (1)
    • ►  Maret (12)
    • ►  Januari (8)
  • ▼  2010 (11)
    • ►  Desember (2)
    • ►  Oktober (1)
    • ►  September (1)
    • ►  Agustus (2)
    • ▼  Juli (2)
      • ExtJS : combobox problem
      • MySQL : Merge two tables
    • ►  Juni (1)
    • ►  Mei (1)
    • ►  Maret (1)
  • ►  2009 (8)
    • ►  November (4)
    • ►  Mei (1)
    • ►  Februari (1)
    • ►  Januari (2)
  • ►  2008 (26)
    • ►  November (3)
    • ►  Oktober (2)
    • ►  September (6)
    • ►  Agustus (1)
    • ►  Juli (4)
    • ►  Juni (8)
    • ►  Mei (2)

Feedjit

Diberdayakan oleh Blogger.