Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You may want to look at an <a href="http://en.wikipedia.org/wiki/Entity%E2%80%93attribute%E2%80%93value_model" rel="nofollow noreferrer">Entity Attribute Value model (EAV)</a> design for your data then.</p> <p>Basically you can have a table with table names, and some other meta-data on tables.</p> <p>Then, you can create a table for each of those rows to have the column data, such as datatype and name.</p> <p>Then, you have a table where you put the values for each column, in a long table.</p> <p>This allows you to dynamically create tables, or add/remove rows dynamically.</p> <p>For a comparison on relational and EAV you can look at this question:</p> <p><a href="https://stackoverflow.com/questions/870808/entity-attribute-value-database-vs-strict-relational-model-ecommerce-question">Entity Attribute Value Database vs. strict Relational Model Ecommerce</a></p> <p>If you want to have a relational view of this data though, then you will need to create triggers to help keep views up-to-date, and this can be a great deal of work to get that to work well. If you don't need a relational view then you should be fine.</p> <p>Another way to do this is with a NoSQL database (<a href="http://en.wikipedia.org/wiki/NoSQL" rel="nofollow noreferrer">http://en.wikipedia.org/wiki/NoSQL</a>), as the schema doesn't have to be set, and so you can just store the columns you need for that row.</p> <p>At this point I would go the NoSQL way as there are many databases that can work, and the reinventing you need to do is minimal.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload