How to find SQLITE database file version

2019-01-11 00:27发布

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 sqlite library or driver or user_version or schema_version).

9条回答
一纸荒年 Trace。
2楼-- · 2019-01-11 00:54

You can extract the information from the header file. It will require you to open the database file 'by hand' but I don't know if there is an API function to get this information.

查看更多
时光不老,我们不散
3楼-- · 2019-01-11 01:00

You have to open the python shell then write these steps:

import sqlite3

sqlite3.sqlite_version
查看更多
看我几分像从前
4楼-- · 2019-01-11 01:06

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

查看更多
登录 后发表回答