用途
INSERT ... SELECt:
insert into your_table (c1, c2, ...)select c1, c2, ...from your_tablewhere id = 1
c1, c2, ...除以外的所有列都在哪里
id?如果要显式插入
id2,则将其包括在INSERT列列表和SELECt中:
insert into your_table (id, c1, c2, ...)select 2, c1, c2, ...from your_tablewhere id = 1
id当然,在第二种情况下,您必须注意2 的可能重复项。



