开发者

Update field with data from the same table

开发者 https://www.devze.com 2023-02-16 11:35 出处:网络
I have a table of employees per year, need to replicate most of the employee开发者_开发技巧s within the same table just changing the year to which they relate.

I have a table of employees per year, need to replicate most of the employee开发者_开发技巧s within the same table just changing the year to which they relate.

Thanks alot.

Mike Teixeira


INSERT INTO EMPLOYEES (<foo..bar>, year) (SELECT <foo..bar>, '2011' FROM EMPLOYEES)
0

精彩评论

暂无评论...
验证码 换一张
取 消