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

📄 comments.sql

📁 Oracle 9i PL/SQL程序设计的随书源码
💻 SQL
字号:
REM comments.sql
REM Chapter 3, Oracle9i PL/SQL Programming by Scott Urman
REM This example demonstrates legal and illegal comments.

DECLARE
  v_Department  CHAR(3);
  v_Course      NUMBER;
BEGIN
  INSERT INTO classes (department, course)
    VALUES (v_Department, v_Course);
END;
/

DECLARE
  v_Department  CHAR(3);  -- Variable to hold the 3 character
                          -- department code
  v_Course      NUMBER;   -- Variable to hold the course number
BEGIN
  -- Insert the course identified by v_Department and v_Course
  -- into the classes table in the database.
  INSERT INTO classes (department, course)
    VALUES (v_Department, v_Course);
END;
/


DECLARE
  v_Department  CHAR(3);  /* Variable to hold the 3 character
                             department name */
  v_Course      NUMBER;   /* Variable to hold the course number */
BEGIN
  /* Insert the course identified by v_Department and v_Course
     into the classes table in the database. */
  INSERT INTO classes (department, course)
    VALUES (v_Department, v_Course);
END;
/


BEGIN
  /* We are now inside a comment. If we were to begin another
     comment such as /* this */ it would be illegal. */
  NULL;
END;
/

⌨️ 快捷键说明

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