拷贝表

create table t2 select * from t1;

mySQL之拷贝表及表结构

只拷贝表结构

create table t2 select * from t1 where 1=2;

mySQL之拷贝表及表结构

这种拷贝,不管是拷贝表结构还是拷贝数据都不会拷贝字段的约束~

相关文章: