How to find SQLITE database file version

后端 未结 9 1520
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-02 11:46

I have few sqlite database files. I want to know the database file version i.e if the database was created with sqlite2 or sqlite3 or any other main/sub version (not the sql

相关标签:
9条回答
  • 2020-12-02 12:27

    I found this to be the easiest method to determine the version of sqlite. Run the Python IDLE Shell, then do the following:

    >>> import sqlite3
    >>> sqlite3.version
    '2.6.0'
    

    In my case it was 2.6.0. Hope this helps... Mark

    0 讨论(0)
  • 2020-12-02 12:29

    If you have a data connection to it in Visual Studio, you can right click on the data base in Server Explorer, select properties, and the version will be shown in the properties window, (under Version, surprisingly). You might need to left click the database first to open it.

    0 讨论(0)
  • 2020-12-02 12:34

    Get user_version: run sql: PRAGMA user_version;

    Get schema_version: PRAGMA schema_version;

    When create database file (.db), user_version can be set by user.

    0 讨论(0)
提交回复
热议问题