mysql 表复制 方法

数据库中常用到的数据备份方法,将一个表中的数据保存到另外一个表中。

 

mysql中:

  create table new_table as (select * from old_table);

 

sql server 中:

  select * into new_table from old_table

  (new_table  必须不存在)

---------------------------------------------------------

  Insert into new_table (field1,field2,...) select value1,value2,... from old_table

  (new_table  必须已经存在)

posted @ 2012-02-27 20:40  青香蕉  阅读(194)  评论(0编辑  收藏  举报