Problem 1: When we creat a sqlite database with sqlite IDE or coding we don’t define sqlite version(1/2/3). So what is the default version and which version we use automatically?
Problem 2: Is there any way to get my current and old sqlite database file version by java coding or something else?
Thanks in advance.
file
is a Unix command. As far as the header, you can check the first 16 bytes of the file: if they are equal to the stringSQLite format 3
, you are apparently dealing with a SQLite 3.x database file. SQLite's documentation describes their file header in some detail.