This directory contains the example code used in Oracle8 PL/SQL Programming.
The contents of this directory are:
ch01: Introduction
3gl_4gl.sql: Some 3GL and 4GL features of PL/SQL
error.sql: Error handling
simple.sql: A simple loop
numeric.sql: A numeric FOR loop
tables.sql: Creates the tables used in the examples
tables8.sql: Creates the tables necessary for the Oracle8 examples
ch02: PL/SQL Basics
anon.sql: An anonymous PL/SQL block
labeled.sql: A named PL/SQL block
proc.sql: A stored procedure
trigger.sql: A database trigger
allthree.sql: An anonymous block with all three sections
comments.sql: Different types of comments
if1.sql: Using the IF THEN statement
if2.sql: An IF THEN statement with >1 procedural statements within it
simple.sql: A simple loop
exitwhen.sql: Using EXIT WHEN to break out of a loop
while1.sql: A WHILE loop
forloop.sql: A FOR loop
forscope.sql: Scoping rules in a FOR loop
goto.sql: Using GOTO to implement a loop
null.sql: Using NULL as a statement
ch03: Records & Tables
assign.sql: Illustrates legal and illegal record assignments
select.sql: Assigning to a record with a SELECT statement
tabrec.sql: A table of records
count.sql: Using the COUNT table attribute
delete.sql: Using the DELETE table attribute
exists.sql: Using the EXISTS table attribute
frstlast.sql: Using the FIRST and LAST table attributes
nxtprior.sql: Using the NEXT and PRIOR table attributes
nulltab.sql: Deleting a table by assigning a NULL table to it
ch04: SQL Within PL/SQL
bindvar.sql: A SQL statement with a bind variable
select.sql: Some SELECT statements
insert.sql: Some INSERT statements
update.sql: An UPDATE statement
1trans.sql: A transaction starting before a PL/SQL block
1block.sql: A PL/SQL block with multiple transctions
ch05: Builtin SQL Functions
spelchek.sql: PL/SQL At Work: Printing numbers as text words
ch06: Cursors
curexamp.sql: First cursor example
binds.sql: Illustrates how bind variables are used
badfetch.sql: Legal and illegal FETCH statements
nomatch1.sql: Using SQL%NOTFOUND for an UPDATE which matches no rows
nomatch2.sql: Using SQL%ROWCOUNT for an UPDATE which matches no rows
nodata.sql: SQL%NOTFOUND vs. NO_DATA_FOUND
simple.sql: A simple fetch loop
exitwhen.sql: Incorrect usage of the EXIT WHEN clause
while.sql: A fetch loop using WHILE..LOOP syntax
forloop.sql: A cursor FOR loop
forupdat.sql: Using SELECT..FOR UPDATE
commit1.sql: ORA-1002 with COMMIT inside SELECT..FOR UPDATE loop
commit2.sql: Avoiding the ORA-1002 error
cursor1.pc: Pro*C program illustrating cursor variables
cursor2.sql: PL/SQL program illustrating cursor variables
ch07: Subprograms: Procedures and Functions
addstud.sql: The AddNewStudent example procedure
callproc.sql: Calling AddNewStudent
modetest.sql: The ModeTest procedure, illustrating parameter modes
plength.sql: ParameterLength procedure, illustrating parameter constraints
callme.sql: CallMe procedure, illustrating positional and named notation
default.sql: Using default values for formal parameters
almostfl.sql: The AlmostFull function
callfunc.sql: Calling AlmostFull
clasinfo.sql: The ClassInfo function, illustrating multiple RETURN statements
error.sql: Parameter behavior if a procedure raises an unhandled exception
local.sql: A block with a local subprogram
local2.sql: A block with a local subprogram in an illegal position
mutual.sql: A block with mutually referential subprograms
forward.sql: Using forward declarations
rfclass.sql: The RecordFullClasses procedure
ch08: Packages
clpack.sql: The ClassPackage package example
cllist.sql: Calling the packaged procedure ClassPackage.ClassList
overload.sql: ClassPackage with an overloaded procedure
random.sql: A random number generator illustrating package initialization
depend.sql: Script which illustrates dependencies among schema objects
fullname.sql: Function which can be called from SQL statements
studops.sql: StudentOps package which illustrates RESTRICT_REFERENCES
export.sql: PL/SQL at Work: A PL/SQL schema exporter
ch09: Triggers
updateMS.sql: Trigger which keeps major_stats in sync with students
samename.sql: Trigger with the same name as a table
instead.sql: An instead-of trigger
order.sql: Demonstrates the order of trigger firing
pseudo.sql: Example which shows that :new and :old are pseudo records
studID.sql: The GenerateStudentID trigger
RSchange.sql: Trigger which uses INSERTING, UPDATING & DELETING
RSinsert.sql: Legal trigger which modifies a referential table
mutating.sql: Avoiding the mutating table error
ch10: Error Handling
raise.sql: Raising a user-defined exception
handle.sql: Handling a user-defined exception
others.sql: The WHEN OTHERS exception handler
sqlerrm.sql: Using SQLERRM and SQLCODE inside a WHEN OTHERS handler
sqlerrm2.sql: Different uses of SQLERRM
pragma.sql: Using the EXCEPTION_INIT pragma
register.sql: Register procedure, demonstrates RAISE_APPLICATION_ERROR
abc1.sql: Initial usage of DBMS_UTILITY.FORMAT_CALL_STACK
e_pkg.sql: PL/SQL at Work: A general error handler
e_tables.sql: Tables necessary for the ErrorPkg package
abc2.sql: Example of using ErrorPkg
ch11: Object Types
objinit.sql: Creating and initializing objects
aname.sql: AssignName procedure, demonstrates NULL-ness of objects
mcall.sql: Calling object methods
prcnttyp.sql: Using %TYPE with objects
error.sql: The ErrorObj object, demonstrates exceptions with objects
alter.sql: Using ALTER TYPE on object types
odepend.sql: Some dependent objects
update.sql: Using objects in an UPDATE statement
colsel.sql: Using column objects in SELECT statements
valueop.sql: Using the VALUE operator
refop.sql: Using the REF and DEREF operators
return.sql: Using the RETURNING clause
ch12: Collections
nested.sql: Some nested table declarations
tconstr.sql: Nested table constructors
nulltab.sql: Behavior of NULL nested tables
tassign.sql: Assigning to elements of nested tables
tinsert.sql: Using a nested table in an INSERT statement
tupdate.sql: Using a nested table in an UPDATE statement
tdelete.sql: Using a nested table in a DELETE statement
tselect.sql: Using a nested table in a SELECT statement
vconstr.sql: Varray constructors
vassign.sql: Assigning to varray elements
checkout.sql: The CheckOut procedure, demonstrating varrays in SQL
co.sql: Example of using CheckOut
exists.sql: The EXISTS collection method
count.sql: The COUNT collection method
limit.sql: The LIMIT collection method
loops.sql: The FIRST, LAST, NEXT, and PRIOR collection methods
extend.sql: The EXTEND collection method
extdel.sql: Interaction between EXTEND and DELETE
trim.sql: The TRIM collection method
delete.sql: The DELETE collection method
ch13: PL/SQL Execution Environments
call_reg.sql: SQL*Plus script for calling Register
call_reg.pc: Pro*C fragment for calling Register
indicator.pc: Pro*C fragment illustrating indicator variables
error.pc: Pro*C fragment illustrating error handling
oci.c: OCI program which calls Register
ch14: Testing and Debugging
avgrade1.sql: First version of the AverageGrade function
debug1.sql: Debug package which inserts into a table
avgrade2.sql: Second version AverageGrade, with some debugging
avgrade3.sql: Third version AverageGrade, with more debugging
avgrade4.sql: Final version of the AverageGrade function
output.sql: Using DBMS_OUTPUT.PUT_LINE and DBMS_OUTPUT.GET_LINES
cntcred1.sql: First version of the Coun
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
plsql编程实例 (234个子文件)
afiedt.buf 58B
OUTSTR.C 8KB
OCI.C 3KB
BOXES.GIF 2KB
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
_desktop.ini 10B
sqlnet.log 19KB
LISTENER.ORA 655B
TNSNAMES.ORA 507B
RSINSERT.PC 4KB
CURSOR1.PC 3KB
CALL_REG.PC 1KB
ERROR.PC 1004B
INDICA~1.PC 879B
EXPORT.SQL 17KB
UC.SQL 14KB
SPELCHEK.SQL 12KB
TABLES.SQL 10KB
EXECANY.SQL 10KB
E_PKG.SQL 9KB
TABLES8.SQL 8KB
DBGEXTP.SQL 4KB
COPYRS.SQL 4KB
EXCEPT.SQL 4KB
DEBUG.SQL 4KB
CLPACK.SQL 4KB
DYNDEMO.SQL 3KB
IDENT.SQL 3KB
SEARCHQ.SQL 3KB
PRINTRAN.SQL 3KB
LOADSTUD.SQL 3KB
DATEDEMO.SQL 3KB
OUTSTR.SQL 3KB
FORMDEMO.SQL 3KB
FILEEXEC.SQL 3KB
MALERT.SQL 3KB
LISTDEMO.SQL 3KB
AVGRADE3.SQL 3KB
AVGRADE2.SQL 3KB
UNINDEX.SQL 3KB
AVGRADE4.SQL 3KB
DQUERY.SQL 2KB
AVGRADE1.SQL 2KB
DESCRTAB.SQL 2KB
DEBUG.SQL 2KB
CREATEQ.SQL 2KB
DUMPLONG.SQL 2KB
IMAGEMAP.SQL 2KB
DYNPLSQL.SQL 2KB
RANDOM.SQL 2KB
MUTATING.SQL 2KB
CURSOR2.SQL 2KB
COOKIE.SQL 2KB
PLENGTH.SQL 2KB
RECRTEMP.SQL 2KB
PRIORITY.SQL 2KB
ERROR.SQL 2KB
SQLERRM.SQL 2KB
RECRTMP2.SQL 2KB
REGISTER.SQL 2KB
SIMPLE.SQL 2KB
ANYEXAMP.SQL 2KB
UTILDEMO.SQL 2KB
DEPEND.SQL 2KB
ERROR.SQL 2KB
L2LTEST.SQL 2KB
WHILE.SQL 2KB
CHECKOUT.SQL 2KB
DEBUG2.SQL 1KB
EXITWHEN.SQL 1KB
DEBUG1.SQL 1KB
OTHERS.SQL 1KB
SIMPLE.SQL 1KB
TABLDEMO.SQL 1KB
CALLME.SQL 1KB
UPDCLASS.SQL 1KB
LONG2LOB.SQL 1KB
STUDOPS.SQL 1KB
TMPINS1.SQL 1KB
COMMENTS.SQL 1KB
共 234 条
- 1
- 2
- 3
xuwm
- 粉丝: 1
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0