academia oracle plsql 2009 -...

33
ACADEMIA ORACLE PLSQL 2009 Instructor: Carmen Negrea SECŢIUNEA 1

Upload: buihanh

Post on 09-May-2018

232 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control

ACADEMIA ORACLE

PLSQL

2009

Instructor: Carmen Negrea

SECŢIUNEA 1

Page 2: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 3: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 4: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 5: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 6: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 7: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 8: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 9: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control

The fact that PL/SQL is portable is a good thing because:

Exceptions can be ported to different operating systems

Blocks can be sent to the operating system.

PL/SQL code can be written on one operating system and executed on a

different one.

PL/SQL code can be run on any operating system without a database.

Page 10: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 11: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control

PL/SQL is easier to learn and more efficient than C or Java

PL/SQL allows basic program logic and control flow to be combined with

SQL statements

PL/SQL extends SQL by including conditional statements , reusable

program units , constants

Page 12: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control

tools can be used to develop and test PL/SQL code

Oracle Jdeveloper

Oracle Application Express

Page 13: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 14: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 15: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 16: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control

CORECT

INCORECT

Page 17: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 18: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 19: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 20: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 21: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control

Which PL/SQL block type must return a value? => Function

Page 22: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 23: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 24: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 25: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 26: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 27: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control

BETWEEN X AND Y

Page 28: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 29: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 30: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 31: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 32: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control
Page 33: ACADEMIA ORACLE PLSQL 2009 - Wikispacesctimbg.wikispaces.com/file/view/S1_PLSQL.pdf/577516157/S1_PLSQ… · PLSQL 2009 Instructor: ... PL/SQL allows basic program logic and control