<small id='5J4Tw'></small><noframes id='5J4Tw'>

      <bdo id='5J4Tw'></bdo><ul id='5J4Tw'></ul>

  1. <legend id='5J4Tw'><style id='5J4Tw'><dir id='5J4Tw'><q id='5J4Tw'></q></dir></style></legend>

  2. <tfoot id='5J4Tw'></tfoot>

    1. <i id='5J4Tw'><tr id='5J4Tw'><dt id='5J4Tw'><q id='5J4Tw'><span id='5J4Tw'><b id='5J4Tw'><form id='5J4Tw'><ins id='5J4Tw'></ins><ul id='5J4Tw'></ul><sub id='5J4Tw'></sub></form><legend id='5J4Tw'></legend><bdo id='5J4Tw'><pre id='5J4Tw'><center id='5J4Tw'></center></pre></bdo></b><th id='5J4Tw'></th></span></q></dt></tr></i><div id='5J4Tw'><tfoot id='5J4Tw'></tfoot><dl id='5J4Tw'><fieldset id='5J4Tw'></fieldset></dl></div>

    2. 更新应用时不想替换旧数据库

      时间:2023-10-22

      • <legend id='oUYtd'><style id='oUYtd'><dir id='oUYtd'><q id='oUYtd'></q></dir></style></legend>

        <small id='oUYtd'></small><noframes id='oUYtd'>

        • <i id='oUYtd'><tr id='oUYtd'><dt id='oUYtd'><q id='oUYtd'><span id='oUYtd'><b id='oUYtd'><form id='oUYtd'><ins id='oUYtd'></ins><ul id='oUYtd'></ul><sub id='oUYtd'></sub></form><legend id='oUYtd'></legend><bdo id='oUYtd'><pre id='oUYtd'><center id='oUYtd'></center></pre></bdo></b><th id='oUYtd'></th></span></q></dt></tr></i><div id='oUYtd'><tfoot id='oUYtd'></tfoot><dl id='oUYtd'><fieldset id='oUYtd'></fieldset></dl></div>
          • <bdo id='oUYtd'></bdo><ul id='oUYtd'></ul>
          • <tfoot id='oUYtd'></tfoot>

                <tbody id='oUYtd'></tbody>
                本文介绍了更新应用时不想替换旧数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                在我的应用程序中,我使用的是 sqlite 数据库我不想在应用商店中更新应用时替换现有数据库.

                In my app I am using sqlite database I don't want to replace an existing database when app is updated in app store.

                它会被新的数据库取代吗?还是会保持同一个数据库?

                Will it replace with new database? Or will it remain the same database?

                推荐答案

                @Ankit: Hi..

                @Ankit: Hi..

                答案是,它不会替换数据库,对于那些不习惯使用您的应用程序以前版本的用户,他们将保持相同的旧数据库,然后他们只需下载并安装新版本的应用程序应用程序而不删除以前的版本.

                Answer is NO it will not replace the database it will remain the same old database for the users who are aready using previous version of your app and then they just download and install the new version of the app without deleting the previous version.

                它将替换 App Store 上的数据库,但如果用户正在使用您的应用程序的早期版本,则默认情况下不会替换数据库.如果数据库已经存在,则它不会替换数据库过程

                It will replace database on App Store but it does not replace the database by default if the user is using previous version of your app. If database already exists then it does not replace the database procedure

                我们必须制定一个数据库升级程序,其中我们必须检查数据库中的某些标志或版本号(如果提供),并在此基础上创建一个数据库升级过程.

                We have to make a database upgrade procedure where in we have to check some flag or the version number in database if provided and based on that we have to create a database upgrade procedure.

                您必须使用数据库升级过程更改数据库并对现有表进行更改,例如添加或删除列,或者可能正在更改表的结构使用 SQL 查询.

                You have to make the changes in database using database upgrade procedure and make alterations into existing tables such as adding or deleting a column or may be changing the structure of the table using SQL Queries.

                然后你必须最后更新数据库中的版本号或一些标志,这会让它知道数据库已经升级,所以它不应该每次都运行相同的过程应用程序加载.

                Then you have to finally update the version number or some flag in the database which would let it know that the database is already upgraded so it should not run the same procedure every time when application loads.

                同样重要的是您要注意用户存储在他/她的数据库中的现有数据.它不应被删除.

                如果您需要更多帮助,请随时与我联系.

                Feel free to contact me if you need more help.

                希望这会有所帮助.

                这篇关于更新应用时不想替换旧数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:如何在 iphone 应用程序中实现 activesync 协议? 下一篇:一个 iPad 应用程序可以直接启动另一个应用程序吗?

                相关文章

                <small id='qFhBC'></small><noframes id='qFhBC'>

                  <bdo id='qFhBC'></bdo><ul id='qFhBC'></ul>

                    <tfoot id='qFhBC'></tfoot>
                    <i id='qFhBC'><tr id='qFhBC'><dt id='qFhBC'><q id='qFhBC'><span id='qFhBC'><b id='qFhBC'><form id='qFhBC'><ins id='qFhBC'></ins><ul id='qFhBC'></ul><sub id='qFhBC'></sub></form><legend id='qFhBC'></legend><bdo id='qFhBC'><pre id='qFhBC'><center id='qFhBC'></center></pre></bdo></b><th id='qFhBC'></th></span></q></dt></tr></i><div id='qFhBC'><tfoot id='qFhBC'></tfoot><dl id='qFhBC'><fieldset id='qFhBC'></fieldset></dl></div>
                  1. <legend id='qFhBC'><style id='qFhBC'><dir id='qFhBC'><q id='qFhBC'></q></dir></style></legend>