如何有效地从一个表复制行数据到另一个SQLite的机器人有效地、机器人、行数、SQLite

由网友(激情灬战队)分享简介:如何有效的行数据从一个表复制到另一个表,其中两个都是相同的结构。我可以走在第一个表,从该行检索初始值,然后插入到第二个表的更难方式。但我觉得还有一个更有效的方法可以做到这一点。谢谢解决方案 插入到表1 SELECT * FROM表2 how do i efficiently copy a row data from...

如何有效的行数据从一个表复制到另一个表,其中两个都是相同的结构。我可以走在第一个表,从该行检索初始值,然后插入到第二个表的更难方式。但我觉得还有一个更有效的方法可以做到这一点。谢谢

解决方案

 插入到表1 SELECT * FROM表2 

SQLite数据库多平台应用及常见错误分析

how do i efficiently copy a row data from one table to another table, where both of them are the same structure. i could go the much harder way of retrieving initial values from the row in the first table and then inserting to the second table. But i feel there is a more efficient way this can be done. Thank you

解决方案

insert into table1 select * from table2

阅读全文

相关推荐

最新文章