How to convert sqlite2 to sqlite3 and what are the differences between both versions?

后端 未结 3 2393
梦谈多话
梦谈多话 2021-02-19 22:38

I need to convert from sqlite2 db to sqlite3, is there any tutorial that shows how to do it? And if I migrate correctly what to expect as I start the project?

3条回答
  •  误落风尘
    2021-02-19 23:26

    EDITED: ANSWER TO THE QUESTION

    To the conversion

    1. Go to http://www.sqlite.org/download.html
    2. Download sqlite-dll file (which stays in Precompiled Binaries For Windows)
    3. Unpack it and copy to C:\Windows\System32 folder

    What are the differences? (quoted from PHP - SQLite vs SQLite3)

    1. SQLite2 internally stores every value as a string, regardless of its type.
    2. Upgrading to SQLite3 will certainly shrink the database size since numbers and BLOBS get stored in their native formats, which could make things run faster.
    3. starting from 3.6.23 version it supports foreign keys.

提交回复
热议问题