alertsend.sql

来自「Oracle 9i PL/SQL程序设计的随书源码」· SQL 代码 · 共 17 行

SQL
17
字号
REM AlertSend.sql
REM Chapter 12, Oracle9i PL/SQL Programming by Scott Urman
REM This block illustrates sending an alert through DBMS_ALERT.

set serveroutput on

DECLARE
  v_AlertName VARCHAR2(30) := 'MyAlert';
BEGIN
  -- An alert is sent by the SIGNAL procedure.
  DBMS_ALERT.SIGNAL(v_AlertName, 'Alert!  Alert!  Alert!');
  
  -- It is not actually sent until we commit.
  COMMIT;
END;
/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?