⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 create_pipe2.sql

📁 介绍Oracle PL SQL编程
💻 SQL
字号:
/* * create_pipe2.sql * Chapter 11, Oracle10g PL/SQL Programming * by Ron Hardman, Michael McLaughlin and Scott Urman * * This script deletes a pipe if it exists in the context of the current * session, then recreates it. */SET ECHO ONSET SERVEROUTPUT ON SIZE 1000000-- An anonymous block program to delete a pipe.DECLARE  -- Define and declare a variable by removing a pipe.--  retval INTEGER := DBMS_PIPE.REMOVE_PIPE('PLSQL$MESSAGE_INBOX');BEGIN NULL; END;/-- An anonymous block program to create a pipe.DECLARE  -- Define and declare variables.  message_pipe VARCHAR2(30) := 'PLSQL$MESSAGE_INBOX';  message_size INTEGER      := 20000;  message_flag BOOLEAN      := FALSE;     -- Function output variable.  retval INTEGER;BEGIN  -- Define a public pipe.  retval := DBMS_PIPE.CREATE_PIPE(message_pipe                                 ,message_size                                 ,message_flag);  -- Print the retval status.  IF (retval = 0) THEN    DBMS_OUTPUT.PUT_LINE('MESSAGE_INBOX pipe is created.');  END IF;EXCEPTION  -- Raise generic exception.  WHEN others THEN    DBMS_OUTPUT.PUT_LINE(SQLERRM);    RETURN;END;/    

⌨️ 快捷键说明

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