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 8585293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:01:23+00:00 2026-06-11T22:01:23+00:00

How do i identify multiple sqlite databases in my app at run time. I

  • 0

How do i identify multiple sqlite databases in my app at run time. I am making a quiz app for iphone in which i need 5-6 sqlite databases, one for each category(subject) of quiz. Help anyone

  • 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-11T22:01:25+00:00Added an answer on June 11, 2026 at 10:01 pm

    Since this would be too long to post as a comment and it does somehow address your question,
    I would suggest again to use a different structure for your application because having multiple databases is not practical for such a simple thing as a quiz.

    You can find some database structure examples here Storing a multiple choice quiz in a database – deciding the schema or here Database Design For Developing 'Quiz' Web Application using PHP and MySQL

    Assuming you have simple quizzes with different categories, a possible alternative would be to store your categories in a Categories table.

    * Category
        - category_id (integer)
        - category_name (string/text)
    

    Where the id would be unique for each one. You could have, for example, the category sports with the id 1 and the category history with the id 2.

    The questions could be stored in another table, named Questions

    * Questions
        - question_id (integer)
        - question_category (integer)
        - question_text (string/text)
        - question_correct_answer_id (integer)
    

    You can have question 1: For what team played John Doe?. In the question_category field you put 1, since 1 is the id of the Sports category. In the question_correct_answer_id you will store the id of the correct answer (not the answer itself, just the id)

    Last but not least, an Answers table.

    * Answers
        - answer_id (integer)
        - question_id (integer)
        - answer_text (string/text)
    

    Here answer_id is the id of the answer, you can store it in the Questions table if it’s the correct one, and a question_id to identify the question.

    Then you can do something like:

    `SELECT * FROM Questions WHERE 'question_category' = 1` 
    

    and get all the Sports questions.
    And for each question, you can do

    SELECT * FROM Answers WHERE 'question_id' = 'your question's id'
    

    Be careful, my examples aren’t necessary the best solution, it’s just a basic example that uses just a single database, but with multiple tables instead of multiple databases.

    My advice to you would be to consider this alternative and if you think it’s worth it, read a little about databases and design a better one.

    Good luck!

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

Sidebar

Related Questions

I've got a string that contains multiple substrings, each of which contains one or
I have a UIWebView page with multiple button . Need to identify which button
I have multiple twitter share buttons on a page, I want to identify which
I need to identify basic gestures which are performed in surface application? My final
I have a tables of rows that exists in multiple databases. I will need
I have multiple tables in a word template and need to change each of
How do i create multiple checkbox for jquery to identify it? example i have
I need to identify if any checkbox in a CheckBoxList is not checked (
I need to identify a fraction from a form field in a recipe database
please help me to identify which of these following is more optimized code? for(int

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.