开发者

Can you merge two sqlite databases on the iPhone?

开发者 https://www.devze.com 2023-01-19 21:53 出处:网络
Well the question says it all. Is there an easy way to merge two sqlite databases on the iPhone? Their structure is identical and the primary key is guaran开发者_高级运维teed to be unique across the t

Well the question says it all. Is there an easy way to merge two sqlite databases on the iPhone? Their structure is identical and the primary key is guaran开发者_高级运维teed to be unique across the two databases.

I know you can do a INSERT INTO SELECT, but I was wondering if there is a more elegant solution.


I haven't checked it thoroughly, but maybe you'll find something in: Core Data Model Versioning and Data Migration Programming Guide. It's included in the Xcode documentation, so you probably already have it.

EDIT: I'm just offering a starting point, not a verified solution.

0

精彩评论

暂无评论...
验证码 换一张
取 消