正好我刚做过跟这类似的存贮过程,给你参考.
CREATE PROCEDURE intable
AS
insert into lszl(peoplecode,name,sex,mankind,birthday,sbron,citybron,
helth,high,special,workdegree,wherework,dws,dwcity,dwblock,dwrode,
dwcode,dwyb,dwphone,school,expertnow,studydegree,poname,powherework,
poworkdegree,whatcountry,peoplelife,walkroute,countrystay,forignphone,
backupfile,jts,jtcity,jtblock,jtrode,jtcode,jtdy,jtl,jtyb,jtphone,
editdate)
select peoplecode,name,sex,mankind,birthday,sbron,citybron,
helth,high,special,workdegree,wherework,dws,dwcity,dwblock,dwrode,
dwcode,dwyb,dwphone,school,expertnow,studydegree,poname,powherework,
poworkdegree,whatcountry,peoplelife,walkroute,countrystay,forignphone,
backupfile,jts,jtcity,jtblock,jtrode,jtcode,jtdy,jtl,jtyb,jtphone,
editdate
from grzl
where peoplecode in (select peoplecode
from grzlback)
delete
from grzl
where peoplecode in (select peoplecode
from grzlback)
insert into grzl
select *
from grzlback
建议用存储过程,不要用触发器.