sqlite 从不同数据库复制表

先打开目标数据库

> sqlite3 target.db;


连接被复制表的源数据库

> attach database ‘source.db’ as source2;


创建新表

> create table copyTable as select * from source2.targetTable;

你可能感兴趣的:(sqlite 从不同数据库复制表)