blockstructure.sql
来自「介绍Oracle PL SQL编程」· SQL 代码 · 共 35 行
SQL
35 行
/*
* 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 + =
减小字号Ctrl + -
显示快捷键?