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

📄 addnewauthor.sql

📁 介绍Oracle PL SQL编程
💻 SQL
字号:
/*
 * AddNewAuthor.sql
 * Chapter 8, Oracle10g PL/SQL Programming
 * by Ron Hardman, Mike McLaughlin, and Scott Urman
 *
 * This script demonstrates how to create and call a simple procedure.
 */
 
CREATE OR REPLACE PROCEDURE AddNewAuthor (
  p_ID authors.ID%TYPE,
  p_FirstName authors.first_name%TYPE,
  p_LastName authors.last_name%TYPE) AS
BEGIN
  -- Insert a new row into the authors table, using the supplied 
  -- arguments for the column values.
  INSERT INTO authors (id, first_name, last_name)
    VALUES (p_ID, p_FirstName, p_LastName);
END AddNewAuthor;
/

BEGIN
  AddNewAuthor(100, 'Zelda', 'Zudnik');
END;
/

-- Roll back the insert so the example can be run again.
ROLLBACK;

⌨️ 快捷键说明

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