Riverman1111
Programmer
Hey,
Does anyone know the syntax to insert a row to a table using a sub-select on the same table using the primary key? I know how to do it in MS Sql Server, can't do in MySql.
Sql Server syntax is:
INSERT TABLE
SELECT FIELD1,
FIELD2
FROM TABLE A
WHERE TABLE_ID = @TABLE_ID
Does anyone know the syntax to insert a row to a table using a sub-select on the same table using the primary key? I know how to do it in MS Sql Server, can't do in MySql.
Sql Server syntax is:
INSERT TABLE
SELECT FIELD1,
FIELD2
FROM TABLE A
WHERE TABLE_ID = @TABLE_ID