如何有效地从一个表复制行数据到另一个SQLite的机器人 [英] How to efficiently copy row data from one Table to another in SQLite android
本文介绍了如何有效地从一个表复制行数据到另一个SQLite的机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何有效的行数据从一个表复制到另一个表,其中两个都是相同的结构。我可以走在第一个表,从该行检索初始值,然后插入到第二个表的更难方式。但我觉得还有一个更有效的方法可以做到这一点。谢谢
解决方案
插入到表1 SELECT * FROM表2
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
这篇关于如何有效地从一个表复制行数据到另一个SQLite的机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文