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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:19:51+00:00 2026-05-27T06:19:51+00:00

is this table any good for mysql? I wanted to make it flexible in

  • 0

is this table any good for mysql? I wanted to make it flexible in the future for this type of data storage. With this table structure, you can’t use a PRIMARY KEY but an index …

Should I change the format of the table to have headers – Primary Key, Width, Length, Space, Coupling …

ID_NUM  Param   Value
1   Width   5e-081
1   Length  12
1   Space   5e-084
1   Coupling    1.511
1   Metal Layer     M3-0
2   Width   5e-082
2   Length  1.38e-061
2   Space   5e-081
2   Coupling    1.5
2   Metal Layer     M310
  • 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-05-27T06:19:52+00:00Added an answer on May 27, 2026 at 6:19 am

    No, this is a bad design for a relational database. This is an example of the Entity-Attribute-Value design. It’s flexible, but it breaks most rules of what it means to be a relational database.

    Before you descend into the EAV design as a solution for a flexible database, read this story: Bad CaRMa.

    More specifically, some of the problems with EAV include:

    • You don’t know what attributes exist for any given ID_NUM without querying for them.
    • You can’t make any attribute mandatory, the equivalent of NOT NULL.
    • You can’t use database constraints.
    • You can’t use SQL data types; the value column must be a long VARCHAR.
    • Particularly in MySQL, each VARCHAR is stored on its own data page, so this is very wasteful.

    Queries are also incredibly complex when you use the EAV design. Magento, an open-source ecommerce platform, uses EAV extensively, and many users say it’s very slow and hard to query if you need custom reports.

    To be relational, you should store each different attribute in its own column, with its own name and an appropriate datatype.

    I have written more about EAV in my presentation Practical Object-Oriented Models in SQL and in my blog post EAV FAIL, and in my book, SQL Antipatterns Volume 1: Avoiding the Pitfalls of Database Programming.

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

Sidebar

Related Questions

In this table how would I use YQL/Xpath to get all data members of
I use a partitioned table with a large amount of data. According to MySQL
Any suggestions on the best way to display this table on an Android platform?
Any help here would be greatly appreciated. I have this table hospital Nurse |
Is this: Dim mydata = (From c In dc.Table Select New With {c.ID}).Count any
This is not working. Firebug is not throwing any error though. HTML: <table> <tr><td>BookA</td><td><a
What are the different between this two diff statement? Any reference document? '{<table width=100%
Right now I have a mysql database with a table userphone(id, phone, type,userid) and
I can't find any good documentation on the linkable behaviour for cakephp. I'm trying
I have a huge table in my database (MySQL)with millions of data. I need

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.