... SQL.
What’s new in OracleSQL and PL/ SQL?
Oracle SQL and PL/ SQL are evolving languages that constitute the backbone
of applications written for the Oracle environment. Every version of the
Oracle ... for writing large, complex programs
that must interact with an Oracle database.
The difference between SQL and PL/ SQL
SQL and PL/ SQL are completely different languages. SQL is a limited language
that ... You should probably know SQL
before trying to use PL/ SQL. This book assumes that you already know SQL. If
you haven’t mastered SQL, take a good long look at SQLFor Dummies, 5th
Edition, by Allen...
... DBMS? 16
The Scoop on SQL and PL/ SQL 16
The purpose of SQL and PL/ SQL 17
The difference between SQL and PL/ SQL 18
What’s new in OracleSQL and PL/ SQL? 18
What Is PL/ SQL Good For? 19
Using database ... Code Elements 189
Basic objects 190
Variables 191
Oracle PL/ SQLForDummies
xii
02_599577 ftoc.qxp 5/1/06 12:09 PM Page xii
Oracle
®
PL/ SQLFor Dummies
®
Published by
Wiley Publishing, Inc.
111 ... 1
Part I: Basic PL/ SQL Concepts 7
Chapter 1: PL/ SQL and Your Database 9
Chapter 2: The PL/ SQL Environment 23
Part II: Getting Started with PL/ SQL 39
Chapter 3: Laying the Groundwork: PL/ SQL Fundamentals...
... SQL.
What’s new in OracleSQL and PL/ SQL?
Oracle SQL and PL/ SQL are evolving languages that constitute the backbone
of applications written for the Oracle environment. Every version of the
Oracle ... compilation errors 73
Oracle PL/ SQLForDummies
x
02_599577 ftoc.qxp 5/1/06 12:09 PM Page x
Simpo PDF Merge and Split Unregistered Version - http://www.simpopdf.com
6
Oracle PL/ SQLForDummies
03_599577 ... complex programs
that must interact with an Oracle database.
The difference between SQL and PL/ SQL
SQL and PL/ SQL are completely different languages. SQL is a limited language
that allows you to...
... TRUE hay FALSE
4. Có bao nhiêu loại vòng lặp trong PL/ SQL?
Các kiểu vòng lặp có sẵn trong PL/ SQl là:
• Lệnh loop-exit.
• Lệnh while-loop.
• Lệnh for- loop.
5. Phân biệt con trỏ (cursor) ngầm và ... tường minh?
Cursor ngầm là một địa chỉ không đặt tên của một lệnh SQL được
xử lý bởi Oracle và/hay cơ chế thực thi PL/ SQL. Mọi lệnh SQL đều thực
hiện trong một cursor ngầm, bao gồm các lệnh update, ...
minh, developer có toàn quyền điều khiển trên sự thực hiện lệnh.
DECLARE
CURSOR employee_cursor IS
SELECT * FROM employee;
...
... 11
2.2. SQL* PLUS, CÔNG CỤ TƯƠNG TÁC LỆNH SQL VỚI DATABASE 11
2.2.1. Câu lệnh tương tác của SQL* Plus .11
2.2.2. Phân nhóm câu lệnh trong SQL* Plus 12
2.2.3. Chi tiết các lệnh SQL* Plus cơ ... sách này được upload tại: hutonline.net
Oracle cơ bản - SQL và PL/ SQL
ký từ tính từ trái sang
LTRIM(char1, n [,char2])
NLS_INITCAP(char)
REPLACE(char,search_string[,replacem
ent_string]) ... này được upload tại: hutonline.net
Oracle cơ bản - SQL và PL/ SQL
MỤC LỤC
MỤC LỤC 1
CHƯƠNG 1. GIỚI THIỆU CHUNG 5
1.1. NGÔN NGỮ SQL 5
1.1.1. Lịch sử phát triển của ngôn ngữ SQL .5
...
...
Quyển sách này được upload tại: hutonline.net
Oracle cơ bản - SQL và PL/ SQL
Chương 1. GIỚI THIỆU CHUNG
1.1.NGÔN NGỮ SQL
1.1.1.
Lịch sử phát triển của ngôn ngữ SQL
Mô hình cơ sở dữ ...
Trang 4
Quyển sách này được upload tại: hutonline.net
Oracle cơ bản - SQL và PL/ SQL
Primary Key nhất thiết phải có số liệu.
Foreign Key Là một column hoặc một tập các columns ... unit Tập hợp các câu lệnh thực hiện được viết bởi ngôn ngữ SQL và
PL/ SQL, bao gồm Procedure, function, package
1.2.3.
Các nhóm lệnh SQL cơ bản
Tên lệnh
SELECT
INSERT
UPDATE
DELETE
Diễn...
... Basics
The Simple Loop
The Numeric FOR Loop
The Cursor FOR Loop
The WHILE Loop
Managing Loop Execution
Tips for PL/ SQL Loops
This chapter explores the iterative control structures of PL/ SQL, otherwise ... that.
Previous: 7.2 The Simple
Loop
Oracle PL/ SQL
Programming, 2nd Edition
Next: 7.4 The Cursor FOR
Loop
7.2 The Simple Loop
Book Index
7.4 The Cursor FOR Loop
The Oracle Library
Navigation
... mechanism for passing results
of queries (the rows returned by fetches against a cursor) between different PL/ SQL programs even
between client and server PL/ SQL programs. Prior to PL/ SQL Release...
... obtain information about
the most recently executed SQL statement by examining the values in the implicit SQL cursor
attributes, as explained later in this chapter.
PL/ SQL employs an implicit ... LOOP;
CLOSE caller_cur;
END;
PL/ SQL does provide these same attributes for an implicit cursor. Because an implicit cursor has no
name, PL/ SQL assigns the generic name SQL to it. Using this name, ... Implicit Cursors
PL/ SQL issues an implicit cursor whenever you execute a SQL statement directly in your code, as
long as that code does not employ an explicit cursor. It is called an "implicit"...
... of options in PL/ SQLfor executing SQL, and all of them occur as some type of cursor.
Generally, there are two types of SQL that you can execute in PL/ SQL: static and dynamic. SQL is
static ... in an inappropriate manner.
PL/ SQL table TYPE
In PL/ SQL Version 2 you can create PL/ SQL tables which are similar to one-dimensional
arrays. In order to create a PL/ SQL table, you must first execute ... through the use of the DBMS _SQL built-in package
(see
Appendix C, Built-In Packages). All other forms of SQL executed inside a PL/ SQL program
represent static SQL; these forms of cursors are the...
... with PL/ SQL 71
72
1.4 PL/ SQL Versions 72
1.4.1 Working with Multiple Versions of PL/ SQL 72
1.4.2 How This Book Handles Different Versions of PL/ SQL 73
1.4.3 PL/ SQL Version 2.0 73
1.4.4 PL/ SQL ... Clearing the PL/ SQL Table 374
376
10.8 PL/ SQL Table Enhancements in PL/ SQL Release 2.3 376
10.8.1 PL/ SQL Tables of Records 377
10.8.2 PL/ SQL Table Built−ins 379
383
10.9 Working with PL/ SQL Tables ... Introduction to PL/ SQL 66
1.1 What Is PL/ SQL? 66
68
1.2 The Concept of Programming in Oracle Applications 68
70
1.3 The Origins of PL/ SQL 70
1.3.1 Improved Application Portability with PL/ SQL 70
1.3.2...