create procedure hebing
as
if exists(select 1 from sysobjects where id=object_id('b') and xtype='u')
begin
insert into a select * from b
truncate table b
end
create procedure hebing
as
if exists(select 1 from sysobjects where id=object_id('b') and xtype='u')
begin
insert into a select * from b
trun table b
end