1、 安卓sqlite创建表结构并复制表中记录语句:
String createSql = "CREATE TABLE " + toTable + " AS SELECT * FROM " + fromTable;
2、表已存在,复制A表记录到B表中
String insertSql = "INSERT OR IGNORE INTO " + toTable + " SELECT * FROM " + fromTable;
1、 安卓sqlite创建表结构并复制表中记录语句:
String createSql = "CREATE TABLE " + toTable + " AS SELECT * FROM " + fromTable;
2、表已存在,复制A表记录到B表中
String insertSql = "INSERT OR IGNORE INTO " + toTable + " SELECT * FROM " + fromTable;