📄 callcl.sql
字号:
REM callCL.sql
REM Chapter 9, Oracle9i PL/SQL Programming by Scott Urman
REM This script demonstrates how to call a packaged procedure.
DELETE FROM temp_table;
DECLARE
v_HistoryStudents ClassPackage.t_StudentIDTable;
v_NumStudents BINARY_INTEGER := 20;
BEGIN
-- Fill the PL/SQL table with the first 20 History 101
-- students.
ClassPackage.ClassList('HIS', 101, v_HistoryStudents,
v_NumStudents);
-- Insert these students into temp_table.
FOR v_LoopCounter IN 1..v_NumStudents LOOP
INSERT INTO temp_table (num_col, char_col)
VALUES (v_HistoryStudents(v_LoopCounter),
'In History 101');
END LOOP;
END;
/
SELECT * FROM temp_table;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -