在将数据插入表之前,如何在存储过程中删除表?
create or replace procedure proc_test is
begin
delete * from table1
insert into table1
select * from table2
end proc_test;
似乎不起作用,语法有什么问题?错误是
ERROR at line 8: PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
<< close current delete fetch lock insert
open rollback savepoint set sql execute commit forall merge
pipe
6. select * from table1
7.
8. end proc_test;