如下:
表A有3个字段是联合主键(非自增长)
create table A
(
a VARCHAR(20) not null,
b VARCHAR(100) not null,
c VARCHAR(10) not null,
constraint P_Key_1 primary key (a, b, c)
);
表中数据:
a b c
1 2 0
1 3 0
如何将表中数据复制一份,改变表中一个联合主键的值,将字段"c"改为1
要求结果如下:
a b c
1 2 0
1 3 0
1 2 1
1 3 1