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

📄 blockstructure.sql

📁 介绍Oracle PL SQL编程
💻 SQL
字号:
/*
 * BlockStructure.sql
 * Chapter 3, Oracle10g PL/SQL Programming
 * by Ron Hardman, Mike McLaughlin, Scott Urman
 *
 * This script demonstrates the structure of a block
 */

exec clean_schema.trigs
exec clean_schema.procs
exec clean_schema.tables

SET SERVEROUTPUT ON

DECLARE

   v_date_time TIMESTAMP;

BEGIN

   -- Retrieve the timestamp into a variable
   SELECT systimestamp
   INTO v_date_time
   FROM dual;

   -- Display the current time to the screen
   DBMS_OUTPUT.PUT_LINE(v_date_time);

EXCEPTION
   WHEN OTHERS
   THEN
      DBMS_OUTPUT.PUT_LINE(sqlerrm);
END;
/

⌨️ 快捷键说明

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