Home:ALL Converter>SQL insert query that uses number from auto_incremented column as insert value

SQL insert query that uses number from auto_incremented column as insert value

Ask Time:2019-06-14T01:47:17         Author:user11349745

Json Formatter

Essentially I have the following SQL query that inserts the three values into the three columns specified.

"INSERT INTO Equipment (field1, field2, field3)
VALUES ('TestInsertF1', 'TestInsertF2', 'TestInsertF3')";

The table also has an auto-incrementing ID column that creates a new ID every time the query above is executed.

How can I insert a value into field4 where the value is hardcoded to be "NUM: (The auto-incremented ID )"

Author:user11349745,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/56586003/sql-insert-query-that-uses-number-from-auto-incremented-column-as-insert-value
yy