duh

Sometimes you think to yourself: duh

Copy a table from 1 database to another was always something I did by exporting the table+data and importing it. Or I used the phpmyadmin tool for it.
Like today, but somehow my eye fell on the SQL syntax phpmyadmin used:

INSERT INTO newdb.newtable
SELECT *
FROM olddb.oldtable;

DUH!

Ofcourse this only works if you have copied the structure of the table already.

 

Gargleblaster.org

My latest run

date: 30 Nov 08 11:02 CET
distance: 4.95 km
duration: 28'04"
my last run

All my runs

total runs: 66
total km: 355.11
total time: 37:06'19"
farthest run: 11.13 km