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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:43:53+00:00 2026-06-10T19:43:53+00:00

I have many data types which are very similar, except for a small number

  • 0

I have many data types which are very similar, except for a small number of columns which logically have different names (but the same data types). I want to store everything in one table.

Right now my idea is simply to give a generic name to some of the columns (e.g. “custom_data_1” etc.) and in a different table remember for each data type what its column names are. This should work, but I wonder if there’s a more structured way (that will make queries easier and will feel less dirty) to achieve the same effect (in MySQL or SQLite).

  • 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-10T19:43:54+00:00Added an answer on June 10, 2026 at 7:43 pm

    If you are storing different things, you should store them in different tables. You can then later create a view to have something that’s easy to query.

    The advantage is that each table has its own objects, and you can easily add/remove/rename columns to it. What if your type1 needs 2 extra columns, but type2 actually loses a column?

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

Sidebar

Related Questions

I have many data.frames, for example: df1 = data.frame(names=c('a','b','c','c','d'),data1=c(1,2,3,4,5)) df2 = data.frame(names=c('a','e','e','c','c','d'),data2=c(1,2,3,4,5,6)) df3 =
I have a data model that includes element types Stage, Actor, and Form. Logically,
I have many tens of thousands of rows of data that need to be
I have many forms that use AJAX (w/ jQuery) for validation and data submission.
I have many objects reference the same class of stored data. In previous programs,
I have written a Python script for merging many data files in a few
I have a silly question here. I define a class with many data members,
I am building a website to capture data. I have many spreadsheets that are
I have a to-many relationship in my data model, and I'd like to get
I have a table with many rows of data, and I want to show

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.