mysql:sql as 复制表

xiaoxiao2021-02-27  432

只复制表结构:

create table database1.table1 like database2.table1;

复制表和数据(可以抽取一些行):

create table database1.table1 as( select column1,column2 from database2.table1 );
转载请注明原文地址: https://www.6miu.com/read-3207.html

最新回复(0)