Copy rows from the same table and update the ID column

前端 未结 8 554
情歌与酒
情歌与酒 2021-02-01 02:09

I have the following table

\"alt

I have inserted Product B to it and it gives me an ID of 15

8条回答
  •  孤城傲影
    2021-02-01 03:04

    insert into Table (DefID,ProdID,Definition,Desc)
           select DefID,15,Definition,Desc from Table where vo_user='jloe';
    

提交回复
热议问题