Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9149119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:26:02+00:00 2026-06-17T11:26:02+00:00

I have an Question. Releted SQLite database. After updating the version number 1 to

  • 0

I have an Question. Releted SQLite database.

After updating the version number 1 to 2,my database updated by onUpgrade() .

1-I want to know ,i can use the older databases or not.

and onUpgrade() i use db.drop("previous table");

2-so after dropping that table can i take data from that or not.

please explain in detail.

Any good suggestion will be accepted.

Edited:- CAN WE USE OLDER VERSION OF DATABASE OR NOT.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:26:03+00:00Added an answer on June 17, 2026 at 11:26 am

    No you cannot access anything from the old table after dropping – dropping a table is a like a delete operation – you aren’t supposed to easily regain access to it. From the first link I got from my search engine:

    Dropping the table removes the table definition as well as all of its
    rows.

    If you still need your previous data I recommend still working with that database and not dropping it until you feel it isn’t needed anymore. This SO answer goes into a lot of detail about how to properly upgrade a table. One interesting thing to note is that if you do decide to use ALTER TABLE:

    SQLite is limited on the ALTER TABLE command, it allows add and rename
    only no remove/drop which is done with recreation of the table.

    So there are multiple ways of working with this – ALTER TABLE is nice if you have a small thing to change, you don’t have to destroy everything, but if you need at least one column/row deleted you’re going to want to follow the answer and create a temp table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question related to this one . I don't want to do
I have multiple websites run on single database. My question related table Structure is
This question is related to database/RDBMS where i have little knowledge regarding performance and
I am using a SQLite database to store data that can be used to
I have a question related to database design. The database that I'm working with
Does anyone have real world experience running a Sqlite database on an SMB share
I have an sqlite file in the assets folder. I'm using a database manager
I have a question related to matching strings in a MSSQL database. Basically, I
I have what I think is a very simple question related to the use
Background I have a couple of projects that use a SQLite DB for data.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.