Sqlite—复制表结构和数据

复制表结构

sqlite> create table newTb as select * from oldTb where 1=0;
sqlite> create table firewall_new as select * from firewall where 1=0;

复制表结构和数据

sqlite> create table newTb as select * from oldTb;
sqlite> create table firewall_new as select * from firewall;

 

posted @ 2019-12-18 11:44  刘_love_田  阅读(1100)  评论(0)    收藏  举报