sqlite创建表并复制表结构
作者:互联网
1、 安卓sqlite创建表结构并复制表中记录语句:
String createSql = "CREATE TABLE " + toTable + " AS SELECT * FROM " + fromTable;
2、表已存在,复制A表记录到B表中
String insertSql = "INSERT OR IGNORE INTO " + toTable + " SELECT * FROM " + fromTable;
标签:sqlite,String,表并,复制,fromTable,toTable,表中,SELECT 来源: https://www.cnblogs.com/zhenxiangyue/p/11088991.html