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

  • SEARCH
  • Home
  • 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 8181283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:28:11+00:00 2026-06-07T00:28:11+00:00

My application allows users to save data to a sqlite file. To ensure a

  • 0

My application allows users to save data to a sqlite file. To ensure a unique table name, I want to just create a table with the name of the (date/time) kind of format when the user presses “Save”. Is there a way to load all of the tables in my sqlite file without explicitly stating the names of all the tables?

I have a list of foods in a sqlite file. The sqlite file contains a bunch of information about each of the food items in it. The user can create their own recipe by going through the sqlite file and adding items to their list. Each item in the list is represented by a cell in a tableview. When the recipe is done, I want the user to be able to save it, and have the system automatically add this recipe as a cell in a different table view. That way, when somebody selects the cell, the entire recipe is displayed (not just the name of the recipe as a cell title) in the next tableview

  • 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-07T00:28:14+00:00Added an answer on June 7, 2026 at 12:28 am

    I don’t think you’re using the SQLite database correctly.

    It sounds like you’re using a table per user data item.

    The strength of a database is to store the data for multiple users, multiple items or multiple whatever into a few tables and then retrieve the data for just specific users or items later. Tables should have rows added, updated or deleted, but in general, tables should not be created and destroyed as individual data elements.

    I suspect what you’re not understanding is the concept of joins.

    A design for what you describe might look something like this:

    User
    ---------------
    ID
    First_Name
    Last_Name
    Email_Address
    
    Ingredient
    ---------------
    ID
    Name
    Description
    
    Recipe
    ---------------
    ID
    User_ID
    Name
    Description
    Serving_size
    Ingredients_ID
    Date_Created
    
    Recipe_Ingredients
    ---------------------
    ID
    Ingredient_ID
    Quantity
    Unit_of_measure
    
    So to get to get a list of recipes for John Doe (this query assumes you can only have one John Doe), you'd do:
    
    select * from Recipe r
    where r.User_ID = (select ID from User where First_Name = 'John' and Last_Name='Doe')
    

    or to get a list of recipes with ingredients:

       select * from Recipe r
        join Recipe_Ingredients ri on r.Ingredients_ID = ri.ID
        join Ingredient i on ri.Ingredient_ID = i.ID
        where r.User_ID = (select ID from User where First_Name = 'John' and Last_Name='Doe')
    

    Using a design like this, whenever a user adds a new recipe, you simply add row(s) to the recipe and recipe_ingredients table. Or, when they add a new ingredient, you add a row to the ingredients table.

    Here’s a link to a SQL joins tutorial.

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

Sidebar

Related Questions

I have a web application that allows users to create an account, and in
I need to create an application that allows users to design forms for various
I am developing an application architecture that allows users to add some data like
I have an application that allows users to save files to Isolated Storage. The
My application allows users to create and delete Site objects. I have implemented this
I'd like to build a web application which allow iPhone users to save a
I am building a web application that will need to allow users to save
My application allows users to upload an image with embedded captions. These captions are
My fairly basic application allows users to upload avatars. The application is deployed to
My new MVC3 web application allows users to store some information about themselves, and

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.