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)