I have a table names
in MySQL with the following columnsID, type, row, value
Composite primary key ID, type, row
The purpose of this table is to save all the names and professions of the specified person in several lines - one information per line.
For example: Usually in Spain people have two first names and two last names, for example José Anastacio Rojas Laguna
.
In Germany there are many people having one name, but two surnames. And even people with a wide profession, for example, teaching at the university and at the same time working as a doctor in a hospital. In this case, in Germany, people will have Prof. Dr.
in their names. For example:Prof. Dr. José Anastacio Rojas Laguna
In this case, I would save all this information in a table as follows:
ID | type | row | value
1 | 0 | 1 | Prof.
1 | 0 | 2 | Dr.
1 | 1 | 1 | José
1 | 1 | 2 | Anastacio
1 | 2 | 1 | Rojas
1 | 2 | 2 | Laguna
An ID
. ID
, ID
. type
, . 0
, 1
2
. row
. 1
, 2
, 3
.. .
, ID
, ? , , ( ) ?