I have the following table
I have inserted Product B to it and it gives me an ID of 15
insert into Table (DefID,ProdID,Definition,Desc)
select DefID,15,Definition,Desc from Table where vo_user='jloe';
INSERT INTO ProuctDefinition (ProdID, Definition, Desc)
SELECT
xxx, Definition, Desc
FROM
ProductDefinition
WHERE
ProdID = yyy
The xxx
is your new ProdID and the yyy
is your old one. This also assumes that DefID
is automagically populated on INSERT
.