当我在 Oracle shell 中运行以下命令时,它工作正常
truncate table table_name
但是当我尝试将其放入存储过程中时
CREATE OR REPLACE PROCEDURE test IS
BEGIN
truncate table table_name;
END test;
/
它失败了
ERROR line 3, col 14, ending_line 3, ending_col 18, Found 'table', Expecting: @ ROW or ( or . or ; :=
为什么?