insert into A(no,name,status)values
(
select no,name,'Add' from B where B.no not in
(select no from A)
)
A(no,name,status)
B(no,name)
no是主键,上面这么写报错,请问要怎么改 ?
insert into A(no,name,status)values
(
select no,name,'Add' from B where B.no not in
(select no from A)
)
A(no,name,status)
B(no,name)
no是主键,上面这么写报错,请问要怎么改 ?
insert into A(no,name,status)
select no,name,'Add' from B where B.no not in
(select no from A)