How do you get an outside key?
-
Well, there are two tables in the OBD system. MySQL
First:
id | name | lastname | surname | id_key |
Second:
id_key | car | city|
id_key
without A.I. the code consists of six figures.I need the user to inject the code.
id_key
in its table, as would be the case with the other table. What do you want? To createid_key
external key, how?
-
INSERT INTO `table2` (`id_key`) SELECT `id_key` FROM `table1` ORDER BY `id` DESC LIMIT 0,1
Right? On condition
id AUTO_INCREMENT
♪