I have about 100K set of tables that are either 2,3 or 4 columns. Each table has about 5-10 rows of data. But each column has its own unique column name and data type. here are 6 examples out of 100K tables column name with about 10 line.
Property Name | Default Type | Description | Reference
Type | Property | Description | Reference
Code | Description | Reference
Value | Reference
Type | Description | Reference
Number | Description | Reference
At this time everything is stored in 100K html file but i want to store them in DB. I was wondering if any one has any suggestion about how to store them with minimum possible tables.
the solution that that was thinking are :
- Creating about 100K tables ( Last solution )
- have three set of tables, 4+1col, 6+1col and 8+1col and use the odd column for column title and even column for the value. Each row has referenced to a foreign key that specify where is this data for. A query them bashed column name and a foreign key can retrieve my data .
I was wondering if anyone has better solution to this ?