473,386 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes and contribute your articles to a community of 473,386 developers and data experts.

Oracle PL/SQL 9i/10g - Introduction

debasisdas
8,127 Expert 4TB
This Article contains some useful tips in oracle PL/SQL in 9i/10g which the forum members might find useful

Advantages of PL/SQL
===================

1.Support for SQL
2.Support for object-oriented programming
3.Better performance
4.Higher productivity
5.Full portability
6.Tight integration with Oracle
7.Tight security

Types of Blocks in PL/SQL

1.anonymous Block
2.named Block/stored Procedure

Features of PL/SQL

1.block Structure
2.variable And Constants
3.control Structure
4.exception Handling
5.cursor
6.procedure
7.function
8.package
9.trigger
10.user-defined Types

Basic Structure of PL/SQL Block

Expand|Select|Wrap|Line Numbers
  1. DECLARE
  2. <VARIABLE>
  3. <CURSOR>
  4. <EXCEPTION>
  5. ...................
  6. ...................
  7. BEGIN
  8. <EXECUTABLE STATEMENT>
  9. EXCEPTION
  10. <EXCEPTION HANDLER>
  11. END;
  12.  
PL/SQL--Data Types

1.Scalar--------NUMBER,VARCHAR2,DATE,BOOLEAN ...etc.
2.Reference-----REF CURSOR
3.Composite-----RECORDTYPE,NESTED TABLE,VARRYING ARRAY
4.LOB-----------BLOB,CLOB,NCLOB,BFILE
5.Anchoring-----%TYPE,%ROWTYPE

The following datatypes are also supported for cross-language compatability.

SMALLINT,NATURAL,NATURALN,POSITIVE,POSITIVEN,
PLS_INTEGER,DEC,DECIMAL
BINARY_INTEGER,BINARY_FLOAT,BINARY_DOUBLE
May 10 '07 #1
0 7760

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jan Bols | last post by:
I've been trying to install Oracle 8.1.7 on a fresh Mandrake 9.1 O.S for days, but I'm still not able to get it running. I've tried several install instructions that I found on the internet but no...
6
by: ViBart | last post by:
Hi, Where can I find free e-books for Oracle Sql Optimalization? Thanks in advance, ViBart
7
by: D | last post by:
I have been working with Oracle as web developer for three years, I have 13 years of database (SQL Server, DB2) experience and I'm getting a masters degree in CS, but don't expect to finish for 2...
1
by: Scott Carter | last post by:
Can anyone point me to an introduction of creating installers with VS.Net? I currently need to create one for a windows service, but I'd also like to find some info about creating installers for...
14
by: Cletis Tout | last post by:
http://www.codeproject.com/cpnet/introtomono1.asp Introduction to Mono - Your first Mono app By Brian Delahunty The first in a series of articles about Mono. This article explains how to...
6
by: shaun.mostashari | last post by:
Hello all, I am curious to know if anyone has done a trade study on DB2, SQL Server, and Oracle databases. Basically I am trying to identify which one to chose based on "Ease of implementation",...
1
by: Xiaoshen Li | last post by:
Dear All, I am relatively new to C(But I have computer science background and know some other programming languages). I am wondering if anyboby can recommend me some C books or websites. I...
2
by: Steve Foo | last post by:
I have been posting this question in google group, EE, and Oracle OTN forum and still no cannot find a suitable solution for it. I have contacted Singapore Microsoft support regarding the problem...
12
by: Xah Lee | last post by:
Of Interest: Introduction to 3D Graphics Programing http://xahlee.org/3d/index.html Currently, this introduction introduces you to the graphics format of Mathematica, and two Java Applet...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.