سؤال

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.

هل كانت مفيدة؟

المحلول

  1. Android sqlite is sqlite3. The specific version depends on the device and software version.

  2. You can get your schema version with SQLiteDatabase getVersion() in Java code or PRAGMA user_version in SQL.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top