错误sql
create or replace procedure pro_IMPdate_web_prmsalegoods_t
is
tmpsql varchar2(100);
begin
truncate table web_prmsalegoods_t';
insert into web_prmsalegoods_t select * from vweb_Prmsalegoods;
commit;
end pro_IMPdate_web_prmsalegoods_t;
正确sql
create or replace procedure pro_IMPdate_web_prmsalegoods_t
is
tmpsql varchar2(100);
begin
tmpsql:='truncate table web_prmsalegoods_t';
execute immediate tmpsql;
insert into web_prmsalegoods_t select * from vweb_Prmsalegoods;
commit;
end pro_IMPdate_web_prmsalegoods_t;