How in MySQL to assign a numeric identifier to a text field with a car type? For example, there is a table:
+------------+------------------- | id_model | Type | +------------+------------------- | 12 | Седан | | 13 | Внедорожник | | 14 | Универсал | | 15 | Купе | | ...... | ...... | | 2032 | Седан | +------------+------------------- It is necessary to make the Sedan have the identifier - 1, the SUV - 2, etc. To get it:
+------------+------------------- | id_model | Type | +------------+------------------- | 12 | 1 | | 13 | 2 | | 14 | 3 | | 15 | 4 | | ...... | ...... | | 2032 | 1 | +------------+-------------------