Execute Immediate within a stored procedure keeps giving insufficient priviliges error

后端 未结 4 507
闹比i
闹比i 2020-11-29 05:03

Here is the definition of the stored procedure:

CREATE OR REPLACE PROCEDURE usp_dropTable(schema VARCHAR, tblToDrop VARCHAR) IS
BEGIN
  DECLARE v_cnt NUMBER;         


        
4条回答
  •  悲哀的现实
    2020-11-29 05:40

    you could use "AUTHID CURRENT_USER" in body of your procedure definition for your requirements.

提交回复
热议问题