我要将查出来的A表的其中A1字段数据,插入到B表A1字段中(相同的则不插入)
谢谢!
------解决思路----------------------
create procedure P_Test
as
insert into B(A1)
select A1 from A where not exists(select 1 from B where A.A1=B.A1)
create procedure P_Test
as
insert into B(A1)
select A1 from A where not exists(select 1 from B where A.A1=B.A1)