5
Imagine the following situation: Run a query in a database to acquire a particular record line, and then enter it again in the same table at the end of the records.
It is possible that I can enter the data again in the table without having to mention in the command of INSERT
what composes that the registration line?
I mean, I really need to mention that to:
mysql> SELECT * FROM table WHERE t = "12:00:00"
+----------+------+------+--------- -+
| t | val | lead | lead diff |
+----------+------+------+-----------+
| 12:00:00 | 100 | 125 | -25 |
+----------+------+------+-----------+
The corresponding code shall be:
mysql> INSERT INTO table (t, val, lead, lead diff) VALUES ("12:00:00", 100, 125, -25);
Or is there a way to make the INSERT
plus generalist? (Not to mention everything).
I gave a context in the title of the question. If you consider it inappropriate, you can reverse the revision of the question. ;)
– LipESprY