PL/SQL Exceptions on Update/Delete of non-existing row

后端 未结 3 902
太阳男子
太阳男子 2021-02-19 10:10

I am learning PL/SQL these days and currently working with Procedures and exceptions using oracle HR schema.

Here is my simple procedure.

create or rep         


        
3条回答
  •  广开言路
    2021-02-19 10:55

    to do so you need to use

    IF SQL%ROWCOUNT = 0 THEN
        RAISE no_delete;
    END IF;
    

    and define your

提交回复
热议问题