Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find SQLITE database file version

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).

like image 967
Srikanth S Avatar asked Mar 10 '12 12:03

Srikanth S


People also ask

How do I access a SQLite database file?

Open a command prompt (cmd.exe) and 'cd' to the folder location of the SQL_SAFI. sqlite database file. run the command 'sqlite3' This should open the SQLite shell and present a screen similar to that below.

Where is the SQLite file?

There is no "standard place" for a sqlite database. The file's location is specified to the library, and may be in your home directory, in the invoking program's folder, or any other place. If it helps, sqlite databases are, by convention, named with a . db file extension.

What is the file format of SQLite database?

What is a SQLite File? A file with . sqlite extension is a lightweight SQL database file created with the SQLite software. It is a database in a file itself and implements a self-contained, full-featured, highly-reliable SQL database engine.

How do I know what version of SQLite I have Mac?

Check for SQLite You can do this simply by entering sqlite3 into your system's command line interface (assuming version 3+ is installed). For example, on a Mac, open the Terminal and enter sqlite3 . Enter ".


1 Answers

You can write this command in any sqlite explorer which will give the sqlite version

select sqlite_version(); 
like image 143
saurabh Avatar answered Sep 18 '22 05:09

saurabh