ADVANTAGES. Via PL/SQL, all sorts of calculations can be done quickly and efficiently without use of Oracle engine.
|
|
- Duane O’Neal’
- 6 years ago
- Views:
Transcription
1 1 PL/SQL
2 INTRODUCTION SQL does not have procedural capabilities. SQL does not provide the programming techniques of condition checking, looping and branching that is required for data before permanent storage. SQL statements are passed to the oracle engine one at time, each time an SQL statement will be executed, so each time need to call oracle engine. This will increase traffic on the network, so it reduce speed of data processing specially in client- server application. 2
3 INTRODUCTION If any error occur in SQL statement, the oracle engine will display its own error message, SQL has no facility to provide user friendly error. PL/SQL is superset of SQL. Procedural language extension SQL 3
4 ADVANTAGES OF PL/SQL PL/SQL provide facilities of conditional checking, branching and looping. PL/SQL dealing with error and facilities displaying user-friendly messages, when error occurred. PL/SQL allows declaration of variable, variable, we can use in intermediate result of query processing, or calculate values and insert them into table. PL/SQL can be used any where, either in SQL statements or PL/SQL blocks. 4
5 ADVANTAGES Via PL/SQL, all sorts of calculations can be done quickly and efficiently without use of Oracle engine. 5
6 PL/SQL BLOCKS PL/SQL code is built of Blocks, with a unique structure. There are two types of blocks in PL/SQL: 1. Anonymous Blocks: have no name (like scripts) can be written and executed immediately in SQLPLUS can be used in a trigger 2. Named Blocks: Procedures Functions 6
7 ANONYMOUS BLOCK STRUCTURE: DECLARE (optional) /* Here you declare the variables you will use in this block */ BEGIN (mandatory) /* Here you define the executable statements (what the block DOES!)*/ EXCEPTION (optional) /* Here you define the actions that take place if an exception is thrown during the run of this block */ END; / Always put a new line with only a / at the end of a block! (This tells Oracle to run the block) (mandatory) A correct completion of a block will generate the following message: 7 PL/SQL procedure successfully completed
8 DECLARE SECTION Code blocks start with a declaration section. Declaration of memory variables, constants, cursor etc. Once declared, they can be used in SQL statements for data manipulation. 8
9 BEGIN SECTION It consists of SQL executable statements as well as PL/SQL statements. Which describe processes that have to be applied to table data. Data manipulation, retrieval, looping and branching constructs are specified in this section. 9
10 THE EXCEPTION SECTION This section deals with handling of errors that occur during execution of the data manipulation statements. Errors can occur due to syntax, logic and/or validation rule. 10
11 THE CHARACTER SET The basic character set includes the following: Upper case Alphabets { A Z } Lower case alphabets { a- z } Number { 0 9 } Symbols ( ), * etc. Words used in PL/SQL block are called Lexical Units. We can insert free blank spaces in lexical unit there will be no effect on PL/SQL block. 11
12 LITERALS Numeric literal It can be either integer of floats. If float is being represented, then the integer part must be separated from the float part by a period. Example 25, 6.34 etc 12
13 STRING LITERAL These are represented by one or more legal characters and must be enclosed with in single quotes. Example hello there 13
14 CHARACTER LITERAL These are string literal consisting of single characters. Example: *, A. 14
15 PL/SQL DATA TYPES The default data type can be use in PL/SQL. NUMBER CHAR DATE VARCHAR BOOLEAN 15
16 VARIABLES Variables in PL/SQL block are named variables. Variable must begin with character and can be followed by a maximum 29 other characters. Reserve words can not be used. Variables separated from each other by punctuation mark. White space can not be used in variable name. 16
17 ASSIGNING VALUES TO VARIABLE The assigning of a value to a variable can be done in two ways: Using the assignment operator := (i.e. a colon followed by an equal to sign and no space between :=). Selecting or fetching table data values into variables. 17
18 What is constant? CONSTANT Declaring a constant is similar to declaring a variable except that the keyword CONSTANT must be added to the variable name and a value assigned immediately. 18
19 DISPLAYING USER MESSAGE To display message, the SERVEROUTPUT should be set ON. SYNTAX: - SET SERVEROUTPUT [ON/OFF]; o DBMS_OUTPUT is a package that includes a number of procedure and function that we can use. o PUT_LINE puts a piece information in the package buffer followed by an end-of-line marker. 19
20 SIMPLE EXAMPLE 20
21 CONTROL STRUCTURE Conditional control Iterative control Sequential control. 21
22 Condition: If <cond> CONDITIONAL CONTROL then <command> elsif <cond2> then <command2> else <command3> end if; Nested conditions: If <cond> then if <cond2> then <command1> end if; else <command2> end if; 22
23 EXAMPLE OF IF STATEMENT 23
24 ITERATIVE CONTROL SIMPLE LOOP SYNTAX: LOOP <sequences of statements> END LOOP 24
25 EXAMPLE OF SIMPLE LOOP 25
26 WHILE LOOP Syntax WHILE <CONDITION> LOOP <ACTION> END LOOP; 26
27 EXAMPLE OF WHILE LOOP 27
28 FOR LOOP SYNTAX: FOR variable IN [REVERSE] start.end LOOP <ACTION> END LOOP; 28
29 EXAMPLE OF FOR LOOP 29
30 SIMPLE EXAMPLE 30
31 SIMPLE EXAMPLE-2 31
32 32
33 CURSOR The oracle engine uses a work area for its internal processing area in order to execute an SQL statement. This work area is private SQL S operation and is called a cursor. The data that is stored in the cursor is called the ACTIVE DATA SET. 33
34 TYPES OF CURSOR Implicit cursor: - if oracle engine opened a cursor for its internal processing, it is known as implicit cursor. Explicit cursor: - A cursor can also be opened for processing data through PL/SQL block. Such a user defined cursor is known as an Explicit cursor. 34
35 GENERAL CURSOR ATTRIBUTES Obtain status information about a cursor. Attribute Type Description %ISOPEN Boolean Evaluates to TRUE if the cursor is open. %NOTFOUND Boolean Evaluates to TRUE if the most recent fetch does not return a row. %FOUND Boolean Evaluates to TRUE if the most recent fetch returns a row; complement of %NOTFOUND %ROWCOUNT Number Evaluates to the total number of rows returned so far. 35
36 EXAMPLE OF CURSOR 36
37 37
38 ANOTHER EXAMPLE 38
39 EXPLICIT CURSOR The only means of generating an explicit cursor is for the cursor to be named in the DECLARE section of the PL/SQL Block. The advantages of declaring an explicit cursor over the indirect implicit cursor are that the explicit cursor gives more programmatic control to the programmer. Implicit cursors are less efficient than explicit cursors and thus it is harder to trap data errors. 39
40 EXPLICIT CURSOR The process of working with an explicit cursor consists of the following steps: DECLARING the cursor. This initializes the cursor into memory. OPENING the cursor. The previously declared cursor can now be opened; memory is allotted. FETCHING the cursor. The previously declared and opened cursor can now retrieve data; this is the process of fetching the cursor. CLOSING the cursor. The previously declared, opened, and fetched cursor must now be closed to release memory allocation. 40
41 DECLARING A CURSOR Declaring a cursor defines the name of the cursor and associates it with a SELECT statement. The first step is to Declare the Cursor with the following syntax: CURSOR c_cursor_name IS select statement Cursor names follow the same rules of scope and visibility that apply to the PL/SQL identifiers. Because the name of the cursor is a PL/SQL identifier, it must be declared before it is referenced. Any valid select statement can be used to define a cursor, including joins and statements with the UNION or MINUS clause. 41
42 OPENING CURSOR The next step in controlling an explicit cursor is to open it. When the Open cursor statement is processed, the following four actions will take place automatically: 1. The variables (including bind variables) in the WHERE clause are examined. 2. Based on the values of the variables, the active set is determined and the PL/SQL engine executes the query for that cursor. Variables are examined at cursor open time only. 3. The PL/SQL engine identifies the active set of data the rows from all involved tables that meet the WHERE clause criteria. 4. The active set pointer is set to the first row. 42
43 OPENING A CURSOR The syntax for opening a cursor is: OPEN cursor_name; 43
44 FETCHING ROWS IN A CURSOR After the cursor has been declared and opened, you can then retrieve data from the cursor. The process of getting the data from the cursor is referred to as fetching the cursor. There are two methods of fetching a cursor, done with the following command: FETCH cursor_name INTO PL/SQL variables; or FETCH cursor_name INTO PL/SQL record; 44
45 Syntax FETCHING ROWS IN A CURSOR FETCH cursorname into variable1, variable2. 45
46 EXPLICIT CURSOR EXAMPLE 46
47 STORED PROCEDURE /FUNCTION A procedure or function is a logically grouped set of SQL and PL/SQL statements that perform a specific task. To make a procedure of function, we can passed parameters before execution. 47
48 PROCEDURE AND FUNCTION Procedure and function are made up of: A declarative part An executable part An optional exception-handling part 48
49 PROCEDURE AND FUNCTION Procedure and Function are stored in Oracle Database. They can be invoked or call by any PL/SQL block. Before procedure or function is stored, the oracle engine parse and compiles the procedure or function. 49
50 HOW DOES THE ORACLE ENGINE CREATE A STORED PROCEDURE/FUNCTION? Few steps are performed by the oracle engine while creating a procedure. 1. Compiles the procedure or function 2. Stores the procedure of function in the database. If oracle engine compiles the PL/SQL block, if any error occurs during the compilation of procedure or function, an invalid procedure of function gets created. The oracle engine display a message after the creation that the procedure or function was created with compilation errors. 50
51 The compilation process does not display error message. If we want to see error message, error can be viewed using SELECT statement. SELECT * FROM USER_ERRORS; When function or procedure invoked, the oracle engine load the compiled procedure or function in a memory area called the SYSTEM GLOBAL AREA (SGA). 51
52 EXECUTE PROCEDURE/FUNCTION Oracle engine performs the following steps to execute a procedure or function 1. Verify user access 2. Verifies procedure of function validity. 3. Executes the procedure or function. 52
53 ADVANTAGE OF PROCEDURE/FUNCTION Security Procedure and Function can help to enforce data security Giving permission to users to access Procedure or Function. Performance Amount of information sent over a network is less. No compilation step is required to execute the code. 53
54 Memory Allocation The amount of memory used reduced because function and procedure can shared memory. Only one copy of procedure or function need to be load or used by different users. Productivity Redundant coding can be avoided, increased productivity. Integrity. Procedure or function need to tested only once that it give accurate result each time. 54
55 PROCEDURE VERSUS FUNCTION Function must return value. Function can return only one value, but, by defining multiple OUT parameters in a procedure, multiple values can be passed to the caller. 55
56 CREATING STORED PROCEDURE Syntax CREATE OR REPLACE PROCEDURE [SCHEMA] procedurename (<arguments> { IN, OUT, IN OUT},<data type>) {IS, AS} Variable declaration Constant declaration BEGIN PL/SQL statement EXCEPTION Statement END; 56
57 Parameter REPLACE Schema Procedure Argument IN OUT IN OUT Data type Description Recreates the procedure if it already exists. This option is used to change the definition of an existing procedure without dropping, recreating and regranting Is the schema to contain the proceduer. The oracle engine takes the default schema to be the current schema, if it is omitted Is the name of the procedure to be created Is the name of an argument to the procedure. Indicates that the parameter will accept a value from the user Indicates that the parameter will return a value to the user Indicates that the parameter will either accept a value from the user or return a value to the user Is the data type of an argument. It supports any data type supported by PL/SQL 57
58 EXAMPLE 58
59 FUNCTION Syntax CREATE OR REPLACE FUNCTION [SCHEMA] functionname (<ARGUMENT> IN <data type>) RETURN <Data type> (IS, AS) Variable declaration Constant declaration BEGIN PL/SQL statement EXCEPTION Statement END; 59
60 REPLACE Schema Function Argument IN RETURN DATA Type Recreates the function if already exists The oracle engine takes the default schema to be current schema, if it is omitted Is the name of function to be created Is the name of an argument to the function, parentheses can be omitted if no arguments are present. Indicates that the parameter will accept a value from the user Is the data type of function s return value. Because every function must return a value, this clause is required. 60
61 EXAMPLE 61
62 OUTPUT 62
63 DATABASE TRIGGERS Database triggers are database objects created via the SQL * Plus tool on the client and stored on the server. These database objects consist following distinct sections: A named database event A PL/SQL block that will execute when event occurs. 63
64 DATABASE TRIGGERS The oracle engine allows the definition of procedures that are implicitly executed, when an insert, update or delete is issued against a table from SQL* Plus or through an application. These procedures are called database trigger. 64
65 USE OF TRIGGER A trigger can also be used to keep track of a table i.e. store the modified and delete record of the table. It can be used to prevent invalid transaction. Enforce complex security authorization. 65
66 TRIGGERS V/S PROCEDURES Trigger do not accept parameters where as procedures can. Triggers is executed implicitly by the oracle engine To execute procedure, it has to explicitly called by a user. 66
67 HOW TO APPLY DATABASE TRIGGERS A trigger has three basic parts A triggering event or statement. It is a SQL statement that causes a trigger to fired. It can be INSERT, UPDATE OR DELETE statement for a specific table. A trigger restriction A trigger restriction specifies a Boolean expression that must be TRUE for the trigger to fire. A trigger restriction is specified using a WHEN clause. A trigger action A trigger action is the PL/SQL code to be executed when a triggering statement is encountered. 67
68 TYPES OF TRIGGERS Row Triggers:- A row trigger is fired each time a row in the table is affected by the triggering statement. For example, if an UPDATE statement updates multiple rows of a table, a row trigger is fired once for each row affected by the UPDATE statement. It the triggering statement affects no rows, the trigger is not executed at all. 68
69 STATEMENT TRIGGER A statement trigger fired once on behalf of the triggering statement. Statement trigger should be used when a triggering statement affects rows in a table but the processing required is completely independent of the number of rows affected. 69
70 BEFORE V/S AFTER TRIGGERS When defining a trigger it is necessary to specify the trigger timing. i.e. specify when the triggering action is to be executed in relation to the triggering statement. BEFORE and AFTER apply to both row and the statement triggers. 70
71 SYNTAX CREATE OR REPLACE TRIGGER TriggerName {BEFORE, AFTER} {DELETE, INSERT, UPDATE [OF COLUMN ]} ON TableName [REFERENCING { OLD AS old, NEW AS new}] [FOR EACH ROW [WHEN condition]] DECLARE <variable declaration>; <constant declaration>; BEGIN <PL/SQL subprogram body>; EXCEPTION END; 71
72 KEYWORDS AND PARAMETERS OR REPLACE Recreate the trigger if already exists TriggerName BEFORE AFTER DELETE INSERT UPDATE ON Is the name of the trigger to be created. Indicates that the Oracle engine fired the trigger before executing the triggering statement Indicates that the Oracle engine fired the trigger after executing the triggering statement Indicates that the Oracle engine fires the trigger whenever a DELETE statement removes a row from the table. Indicates that the Oracle engine fires the trigger whenever an INSERT statement adds a row to table. Indicates that the Oracle engine fires the trigger whenever an UPDATE statement changes a values in one of the column specified in the OF clause. Specify the schema and name of the table, which the trigger is to be created 72
73 REFERENCING Specifies corelation names. Correlation names can be used in the PL/SQL block and WHEN clause of row trigger to refer specifically to old and new value of the current row. The default correlation names are OLD and NEW. FOR EACH ROW WHEN Designates the trigger to be a row trigger. The Oracle engine fires a row trigger once for each row that is affected by the triggering statement and meets the optional trigger constraint defined in the WHEN clause. Specifies the trigger restriction. The trigger restriction contains a SQL condition that must be satisfied for the Oracle engine to fire the trigger. 73
74 EXAMPLE 74
75 CREATE TRIGGER AUDIT_TRAIL AFTER UPDATE OR DELETE ON PERSON FOR EACH ROW DECLARE OPER VARCHAR2(8); BEGIN IF updating THEN END IF; OPER:='UPDATE'; IF DELETING THEN END IF; OPER:='DELETE'; INSERT INTO RECORD VALUES(:OLD.P_ID,:OLD.LASTNAME,:OLD.FIRSTNAME,:OLD.ADD RESS,:OLD.CITY); END; 75
76 76
77 VIEW PROCEDURE AND FUNCTION IN ORACLE ENGINE select object_name, object_type from user_objects where object_type in ( 'PROCEDURE', 'FUNCTION' ); 77
78 PREPARED BY : - Chintan Shah & Pankti Dharwa Assistant Professor Shankesinh Vaghela Bapu Institute of Technology Chintan.shah84@gmail.com 78
Contents I Introduction 1 Introduction to PL/SQL iii
Contents I Introduction Lesson Objectives I-2 Course Objectives I-3 Human Resources (HR) Schema for This Course I-4 Course Agenda I-5 Class Account Information I-6 Appendixes Used in This Course I-7 PL/SQL
More informationQuestion: Which statement would you use to invoke a stored procedure in isql*plus?
What are the two types of subprograms? procedure and function Which statement would you use to invoke a stored procedure in isql*plus? EXECUTE Which SQL statement allows a privileged user to assign privileges
More informationPL/SQL Block structure
PL/SQL Introduction Disadvantage of SQL: 1. SQL does t have any procedural capabilities. SQL does t provide the programming technique of conditional checking, looping and branching that is vital for data
More informationLecture 08. Spring 2018 Borough of Manhattan Community College
Lecture 08 Spring 2018 Borough of Manhattan Community College 1 The SQL Programming Language Recent versions of the SQL standard allow SQL to be embedded in high-level programming languages to help develop
More informationIntroduction to Computer Science and Business
Introduction to Computer Science and Business The Database Programming with PL/SQL course introduces students to the procedural language used to extend SQL in a programatic manner. This course outline
More information5. Single-row function
1. 2. Introduction Oracle 11g Oracle 11g Application Server Oracle database Relational and Object Relational Database Management system Oracle internet platform System Development Life cycle 3. Writing
More informationOracle Database 12c: Program with PL/SQL Duration: 5 Days Method: Instructor-Led
Oracle Database 12c: Program with PL/SQL Duration: 5 Days Method: Instructor-Led Course Description This training starts with an introduction to PL/SQL and then explores the benefits of this powerful programming
More informationOracle Database: Introduction to SQL/PLSQL Accelerated
Oracle University Contact Us: Landline: +91 80 67863899 Toll Free: 0008004401672 Oracle Database: Introduction to SQL/PLSQL Accelerated Duration: 5 Days What you will learn This Introduction to SQL/PLSQL
More informationProcedural Language Structured Query Language (PL/SQL)
The Islamic University of Gaza Faculty of Engineering Dept. of Computer Engineering Database Lab (ECOM 4113) Lab 7 Procedural Language Structured Query Language (PL/SQL) Eng. Ibraheem Lubbad Structured
More informationOracle Database: Program with PL/SQL
Oracle University Contact Us: + 420 2 2143 8459 Oracle Database: Program with PL/SQL Duration: 5 Days What you will learn This Oracle Database: Program with PL/SQL training starts with an introduction
More informationOracle Database: Program with PL/SQL Ed 2
Oracle University Contact Us: +38 61 5888 820 Oracle Database: Program with PL/SQL Ed 2 Duration: 5 Days What you will learn This Oracle Database: Program with PL/SQL training starts with an introduction
More informationOracle Database 11g: SQL and PL/SQL Fundamentals
Oracle University Contact Us: +33 (0) 1 57 60 20 81 Oracle Database 11g: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn In this course, students learn the fundamentals of SQL and PL/SQL
More informationOracle Database 12c R2: Program with PL/SQL Ed 2 Duration: 5 Days
Oracle Database 12c R2: Program with PL/SQL Ed 2 Duration: 5 Days This Database Program with PL/SQL training shows you how to develop stored procedures, functions, packages and database triggers. You'll
More informationConditionally control code flow (loops, control structures). Create stored procedures and functions.
TEMARIO Oracle Database: Program with PL/SQL Ed 2 Duration: 5 Days What you will learn This Oracle Database: Program with PL/SQL training starts with an introduction to PL/SQL and then explores the benefits
More informationOracle PLSQL Training Syllabus
Oracle PLSQL Training Syllabus Introduction Course Objectives Course Agenda Human Resources (HR) Schema Introduction to SQL Developer Introduction to PL/SQL PL/SQL Overview Benefits of PL/SQL Subprograms
More informationORACLE TRAINING. ORACLE Training Course syllabus ORACLE SQL ORACLE PLSQL. Oracle SQL Training Syllabus
ORACLE TRAINING ORACLE Training Course syllabus ORACLE SQL ORACLE PLSQL Oracle SQL Training Syllabus Introduction to Oracle Database List the features of Oracle Database 11g Discuss the basic design, theoretical,
More informationOracle Developer Track Course Contents. Mr. Sandeep M Shinde. Oracle Application Techno-Functional Consultant
Oracle Developer Track Course Contents Sandeep M Shinde Oracle Application Techno-Functional Consultant 16 Years MNC Experience in India and USA Trainer Experience Summary:- Sandeep M Shinde is having
More informationIntroduction to SQL/PLSQL Accelerated Ed 2
Oracle University Contact Us: Local: 1800 103 4775 Intl: +91 80 67863102 Introduction to SQL/PLSQL Accelerated Ed 2 Duration: 5 Days What you will learn This Introduction to SQL/PLSQL Accelerated course
More informationOracle Database: SQL and PL/SQL Fundamentals NEW
Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training delivers the fundamentals of SQL and PL/SQL along with the
More informationOracle Database 11g: Program with PL/SQL Release 2
Oracle University Contact Us: +41- (0) 56 483 31 31 Oracle Database 11g: Program with PL/SQL Release 2 Duration: 5 Days What you will learn This course introduces students to PL/SQL and helps them understand
More informationUNIT II PL / SQL AND TRIGGERS
UNIT II PL / SQL AND 1 TRIGGERS TOPIC TO BE COVERED.. 2.1 Basics of PL / SQL 2.2 Datatypes 2.3 Advantages 2.4 Control Structures : Conditional, Iterative, Sequential 2.5 Exceptions: Predefined Exceptions,User
More informationOracle Database: SQL and PL/SQL Fundamentals Ed 2
Oracle University Contact Us: Local: 1800 103 4775 Intl: +91 80 67863102 Oracle Database: SQL and PL/SQL Fundamentals Ed 2 Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals
More informationSQL Interview Questions
SQL Interview Questions SQL stands for Structured Query Language. It is used as a programming language for querying Relational Database Management Systems. In this tutorial, we shall go through the basic
More informationUNIT-IV (Relational Database Language, PL/SQL)
UNIT-IV (Relational Database Language, PL/SQL) Section-A (2 Marks) Important questions 1. Define (i) Primary Key (ii) Foreign Key (iii) unique key. (i)primary key:a primary key can consist of one or more
More informationOVERVIEW OF THE TYPES OF PL/SQL BLOCKS:
OVERVIEW OF THE TYPES OF PL/SQL BLOCKS: The P/L SQL blocks can be divided into two broad categories: Anonymous Block: The anonymous block is the simplest unit in PL/SQL. It is called anonymous block because
More informationOracle - Oracle Database: Program with PL/SQL Ed 2
Oracle - Oracle Database: Program with PL/SQL Ed 2 Code: Lengt h: URL: DB-PLSQL 5 days View Online This Oracle Database: Program with PL/SQL training starts with an introduction to PL/SQL and then explores
More informationIZ0-144Oracle 11g PL/SQL Certification (OCA) training
IZ0-144Oracle 11g PL/SQL Certification (OCA) training Advanced topics covered in this course: Managing Dependencies of PL/SQL Objects Direct and Indirect Dependencies Using the PL/SQL Compiler Conditional
More informationRDBMS - PL SQL - Topic 5 - MSBTE QUESTIONS AND ANSWERS
RDBMS - PL SQL - Topic 5 - MSBTE QUESTIONS AND ANSWERS SUMMER 2017 Q. Describe Exception handling. Explain with example. 4 Marks Exception Handling: Exception is nothing but an error. Exception can be
More informationSQL+PL/SQL. Introduction to SQL
SQL+PL/SQL CURRICULUM Introduction to SQL Introduction to Oracle Database List the features of Oracle Database 12c Discuss the basic design, theoretical, and physical aspects of a relational database Categorize
More informationPL/SQL is a combination of SQL along with the procedural features of programming languages.
(24 Marks) 5.1 What is PLSQL? PLSQL stands for Procedural Language extension of SQL. PLSQL is a combination of SQL along with the procedural features of programming languages. It was developed by Oracle
More information1Z0-144 Q&As Oracle Database 11g: Program with PL/ SQL
CertBus.com 1Z0-144 Q&As Oracle Database 11g: Program with PL/ SQL Pass Oracle 1Z0-144 Exam with 100% Guarantee Free Download Real Questions & Answers PDF and VCE file from: 100% Passing Guarantee 100%
More informationORACLE: PL/SQL Programming
%ROWTYPE Attribute... 4:23 %ROWTYPE... 2:6 %TYPE... 2:6 %TYPE Attribute... 4:22 A Actual Parameters... 9:7 Actual versus Formal Parameters... 9:7 Aliases... 8:10 Anonymous Blocks... 3:1 Assigning Collection
More informationWhen a database trigger routine does not have to take place before the triggering event, which timing should you assign to the trigger?
Page 1 of 80 Item: 1 (Ref:1z0-147e.9.2.4) When a database trigger routine does not have to take place before the triggering event, which timing should you assign to the trigger? nmlkj ON nmlkj OFF nmlkj
More informationTable of Contents. PDF created with FinePrint pdffactory Pro trial version
Table of Contents Course Description The SQL Course covers relational database principles and Oracle concepts, writing basic SQL statements, restricting and sorting data, and using single-row functions.
More informationProgramming in Oracle with PL/SQL. Procedural Language Extension to SQL
Programming in Oracle with PL/SQL Procedural Language Extension to SQL PL/SQL Allows using general programming tools with SQL, for example: loops, conditions, functions, etc. This allows a lot more freedom
More informationOracle Database: Program with PL/SQL
Oracle University Contact Us: Local: 1800 425 8877 Intl: +91 80 4108 4700 Oracle Database: Program with PL/SQL Duration: 50 Hours What you will learn This course introduces students to PL/SQL and helps
More informationOracle Database 11g: Program with PL/SQL
Oracle University Contact: +31 (0)30 669 9244 Oracle Database 11g: Program with PL/SQL Duration: 5 Dagen What you will learn This course introduces students to PL/SQL and helps them understand the benefits
More informationTopics Fundamentals of PL/SQL, Integration with PROIV SuperLayer and use within Glovia
Topics Fundamentals of PL/SQL, Integration with PROIV SuperLayer and use within Glovia 1. Creating a Database Alias 2. Introduction to SQL Relational Database Concept Definition of Relational Database
More informationINDEX. 1 Introduction. 2 Types of Cursors 2.1 Explicit cursor 2.2 Attributes 2.3 Implicit cursor 2.4 Attributes. 3 Parameterized cursor
INDEX 1 Introduction 2 Types of Cursors 2.1 Explicit cursor 2.2 Attributes 2.3 Implicit cursor 2.4 Attributes 3 Parameterized cursor INTRODUCTION what is cursor? we have seen how oracle executes an SQL
More informationOracle PLSQL. Course Summary. Duration. Objectives
Oracle PLSQL Course Summary Use conditional compilation to customize the functionality in a PL/SQL application without removing any source code Design PL/SQL packages to group related constructs Create
More informationIntroduction p. 1 The Logical and Physical View of Tables p. 1 Database Types p. 4 NULLs p. 6 DDL and DML Statements p. 7 Column and Table Constraint
Preface p. xv Introduction p. 1 The Logical and Physical View of Tables p. 1 Database Types p. 4 NULLs p. 6 DDL and DML Statements p. 7 Column and Table Constraint Clauses p. 7 Sample Database p. 9 A Quick
More information2. Programming written ( main theme is to test our data structure knowledge, proficiency
ORACLE Job Placement Paper Paper Type : General - other 1. Tech + Aptitude written 2. Programming written ( main theme is to test our data structure knowledge, proficiency sorting searching algorithms
More informationVendor: Oracle. Exam Code: 1Z Exam Name: Oracle Database 11g: Program with PL/ SQL. Version: Demo
Vendor: Oracle Exam Code: 1Z0-144 Exam Name: Oracle Database 11g: Program with PL/ SQL Version: Demo QUESTION NO: 1 View the Exhibit to examine the PL/SQL code: SREVROUPUT is on for the session. Which
More informationORACLE Job Placement Paper. Paper Type : General - other
ORACLE Job Placement Paper Paper Type : General - other 1. Tech + Aptitude written 2. Programming written ( main theme is to test our data structure knowledge, proficiency sorting searching algorithms
More informationPace University. Fundamental Concepts of CS121 1
Pace University Fundamental Concepts of CS121 1 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University October 12, 2005 This document complements my tutorial Introduction
More information1Z Oracle Database 11g - Program with PL/SQL Exam Summary Syllabus Questions
1Z0-144 Oracle Database 11g - Program with PL/SQL Exam Summary Syllabus Questions Table of Contents Introduction to 1Z0-144 Exam on Oracle Database 11g - Program with PL/SQL... 2 Oracle 1Z0-144 Certification
More informationNow, we can refer to a sequence without having to use any SELECT command as follows:
Enhancement in 11g Database PL/SQL Sequence: Oracle Database 11g has now provided support for Sequence in PL/SQL. Earlier to get a number from a sequence in PL/SQL we had to use SELECT command with DUAL
More informationPersistent Stored Modules (Stored Procedures) : PSM
1 Persistent Stored Modules (Stored Procedures) : PSM Stored Procedures What is stored procedure? SQL allows you to define procedures and functions and store them in the database server Executed by the
More informationORACLE TRAINING CURRICULUM. Relational Databases and Relational Database Management Systems
ORACLE TRAINING CURRICULUM Relational Database Fundamentals Overview of Relational Database Concepts Relational Databases and Relational Database Management Systems Normalization Oracle Introduction to
More informationOral Questions and Answers (DBMS LAB) Questions & Answers- DBMS
Questions & Answers- DBMS https://career.guru99.com/top-50-database-interview-questions/ 1) Define Database. A prearranged collection of figures known as data is called database. 2) What is DBMS? Database
More informationThe PL/SQL Engine: PL/SQL. A PL/SQL Block: Declaration Section. Execution Section. Declaration Section 3/24/2014
PL/SQL The PL/SQL Engine: PL/SQL stands for Procedural Language extension of SQL. PL/SQL is a combination of SQL along with the procedural features of programming languages. It was developed by Oracle
More informationQuestion Bank PL/SQL Fundamentals-I
Question Bank PL/SQL Fundamentals-I UNIT-I Fundamentals of PL SQL Introduction to SQL Developer, Introduction to PL/SQL, PL/SQL Overview, Benefits of PL/SQL, Subprograms, Overview of the Types of PL/SQL
More informationSTRUCTURED QUERY LANGUAGE (SQL)
1 SQL STRUCTURED QUERY LANGUAGE (SQL) The first questions to ask are what is SQL and how do you use it with databases? SQL has 3 main roles: Creating a database and defining its structure Querying the
More informationCSC Web Programming. Introduction to JavaScript
CSC 242 - Web Programming Introduction to JavaScript JavaScript JavaScript is a client-side scripting language the code is executed by the web browser JavaScript is an embedded language it relies on its
More informationPL / SQL Basics. Chapter 3
PL / SQL Basics Chapter 3 PL / SQL Basics PL / SQL block Lexical units Variable declarations PL / SQL types Expressions and operators PL / SQL control structures PL / SQL style guide 2 PL / SQL Block Basic
More informationSlides by: Ms. Shree Jaswal
Slides by: Ms. Shree Jaswal A trigger is a statement that is executed automatically by the system as a side effect of a modification to the database. To design a trigger mechanism, we must: Specify the
More informationDatabase Programming with PL/SQL
Database Programming with PL/SQL 5-3 Objectives This lesson covers the following objectives: List and explain the benefits of using cursor FOR loops Create PL/SQL code to declare a cursor and manipulate
More informationOverview of PL/SQL. About PL/SQL. PL/SQL Environment. Benefits of PL/SQL. Integration
About PL/ Overview of PL/ PL/ is an extension to with design features of programming languages. Data manipulation and query statements of are included within procedural units of code. PL/ Environment Benefits
More informationSEF DATABASE FOUNDATION ON ORACLE COURSE CURRICULUM
On a Mission to Transform Talent SEF DATABASE FOUNDATION ON ORACLE COURSE CURRICULUM Table of Contents Module 1: Introduction to Linux & RDBMS (Duration: 1 Week)...2 Module 2: Oracle SQL (Duration: 3 Weeks)...3
More informationTable of Contents. Oracle SQL PL/SQL Training Courses
Table of Contents Overview... 7 About DBA University, Inc.... 7 Eligibility... 8 Pricing... 8 Course Topics... 8 Relational database design... 8 1.1. Computer Database Concepts... 9 1.2. Relational Database
More informationDatabase Programming with PL/SQL
Database Programming with PL/SQL Cursor FOR Loops 1 Copyright 2013, Oracle and/or its affiliates. All rights Objectives This lesson covers the following objectives: List and explain the benefits of using
More informationOracle Database 11g: PL/SQL Fundamentals
D49990GC20 Edition 2.0 September 2009 D62728 Oracle Database 11g: PL/SQL Fundamentals Student Guide Author Brian Pottle Technical Contributors and Reviewers Tom Best Christoph Burandt Yanti Chang Laszlo
More informationOracle12c Release 1 PL/SQL (3 Days)
Oracle12c Release 1 PL/SQL (3 Days) www.peaklearningllc.com Course Description This course provides a complete, hands-on, comprehensive introduction to PL/SQL including the use of both SQL Developer and
More informationOracle Exam 1z0-144 Oracle Database 11g: Program with PL/SQL Version: 8.5 [ Total Questions: 103 ]
s@lm@n Oracle Exam 1z0-144 Oracle Database 11g: Program with PL/SQL Version: 8.5 [ Total Questions: 103 ] Question No : 1 What is the correct definition of the persistent state of a packaged variable?
More informationThe PCAT Programming Language Reference Manual
The PCAT Programming Language Reference Manual Andrew Tolmach and Jingke Li Dept. of Computer Science Portland State University September 27, 1995 (revised October 15, 2002) 1 Introduction The PCAT language
More informationExam Name: Oracle Database 11g: Program with PL/SQL
Vendor: Oracle Exam Code: 1Z0-144 Exam Name: Oracle Database 11g: Program with PL/SQL Version: DEMO 1.View the Exhibit to examine the PL/SQL code: SREVROUPUT is on for the session. Which statement Is true
More informationDatabase Systems: Design, Implementation, and Management Tenth Edition. Chapter 8 Advanced SQL
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 8 Advanced SQL Objectives In this chapter, you will learn: How to use the advanced SQL JOIN operator syntax About the different
More informationThe SPL Programming Language Reference Manual
The SPL Programming Language Reference Manual Leonidas Fegaras University of Texas at Arlington Arlington, TX 76019 fegaras@cse.uta.edu February 27, 2018 1 Introduction The SPL language is a Small Programming
More informationOracle Database: Introduction to SQL Ed 2
Oracle University Contact Us: +40 21 3678820 Oracle Database: Introduction to SQL Ed 2 Duration: 5 Days What you will learn This Oracle Database 12c: Introduction to SQL training helps you write subqueries,
More information1 Lexical Considerations
Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.035, Spring 2013 Handout Decaf Language Thursday, Feb 7 The project for the course is to write a compiler
More information2 PL/SQL - fundamentals Variables and Constants Operators SQL in PL/SQL Control structures... 7
Table of Contents Spis treści 1 Introduction 1 2 PLSQL - fundamentals 1 2.1 Variables and Constants............................ 2 2.2 Operators.................................... 5 2.3 SQL in PLSQL.................................
More informationORACLE DATABASE 12C INTRODUCTION
SECTOR / IT NON-TECHNICAL & CERTIFIED TRAINING COURSE In this training course, you gain the skills to unleash the power and flexibility of Oracle Database 12c, while gaining a solid foundation of database
More informationLesson B Objectives IF/THEN. Chapter 4B: More Advanced PL/SQL Programming
Chapter 4B: More Advanced PL/SQL Programming Monday 2/23/2015 Abdou Illia MIS 4200 - Spring 2015 Lesson B Objectives After completing this lesson, you should be able to: Create PL/SQL decision control
More informationOracle PL/SQL - 12c & 11g [Basic PL/SQL & Advanced PL/SQL]
Chapter Overview of PL/SQL Programs Control Statements Using Loops within PLSQL Oracle PL/SQL - 12c & 11g [Basic PL/SQL & Advanced PL/SQL] Table of Contents Describe a PL/SQL program construct List the
More informationOracle Database 10g: PL/SQL Fundamentals
Oracle Database 10g: PL/SQL Fundamentals Volume I Student Guide D17112GC30 Edition 3.0 April 2009 D59413 Authors Salome Clement Sunitha Patel Tulika Srivastava Technical Contributors and Reviewers Brian
More informationOracle Database: SQL and PL/SQL Fundamentals NEW
Oracle University Contact Us: 001-855-844-3881 & 001-800-514-06-97 Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals
More informationActual4Test. Actual4test - actual test exam dumps-pass for IT exams
Actual4Test http://www.actual4test.com Actual4test - actual test exam dumps-pass for IT exams Exam : 1z0-144 Title : Oracle Database 11g: Program with PL/SQL Vendor : Oracle Version : DEMO Get Latest &
More informationOracle Database 10g: PL/SQL Fundamentals
Oracle Database 10g: PL/SQL Fundamentals Volume 1 Student Guide D17112GC21 Edition 2.1 December 2006 D48243 Authors Tulika Srivastava Sunitha Patel Technical Contributors and Reviewers Chaitanya Koratamaddi
More informationOracle Database 11g & PL/SQL
Oracle Database 11g & PL/SQL 2 Day Developer's Guide Overview and Examples Marcelo Vinícius Cysneiros Aragão marcelovca90@inatel.br Topics 1. Topics 2. Connecting to Oracle Database and Exploring It 3.
More informationIntroduction to Programming Using Java (98-388)
Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;
More informationOracle PL/SQL. DUMmIES. by Michael Rosenblum and Dr. Paul Dorsey FOR
Oracle PL/SQL FOR DUMmIES by Michael Rosenblum and Dr. Paul Dorsey Oracle PL/SQL For Dummies Published by Wiley Publishing, Inc. 111 River Street Hoboken, NJ 07030-5774 www.wiley.com Copyright 2006 by
More informationOracle Database: SQL and PL/SQL Fundamentals
Oracle University Contact Us: 001-855-844-3881 & 001-800-514-06-9 7 Oracle Database: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training
More informationQuestion No : 1 Which statement is true about triggers on data definition language (DDL) statements?
Volume: 103 Questions Question No : 1 Which statement is true about triggers on data definition language (DDL) statements? A. They can be used to track changes only to a table or index. B. They can be
More informationOracle PL SQL Training & Certification
About Intellipaat Intellipaat is a fast-growing professional training provider that is offering training in over 150 most sought-after tools and technologies. We have a learner base of 600,000 in over
More informationDatabase Programming with PL/SQL
Database Programming with PL/SQL 12-1 Objectives This lesson covers the following objectives: Recall the stages through which all SQL statements pass Describe the reasons for using dynamic SQL to create
More informationORACLE VIEWS ORACLE VIEWS. Techgoeasy.com
ORACLE VIEWS ORACLE VIEWS Techgoeasy.com 1 Oracle VIEWS WHAT IS ORACLE VIEWS? -A view is a representation of data from one or more tables or views. -A view is a named and validated SQL query which is stored
More informationDatabases 1. SQL/PSM and Oracle PL/SQL
Databases 1 SQL/PSM and Oracle PL/SQL SQL DDL (Data Definition Language) Defining a Database Schema Primary Keys, Foreign Keys Local and Global Constraints Defining Views Triggers 2 SQL DML (Database Modifications)
More informationXQ: An XML Query Language Language Reference Manual
XQ: An XML Query Language Language Reference Manual Kin Ng kn2006@columbia.edu 1. Introduction XQ is a query language for XML documents. This language enables programmers to express queries in a few simple
More informationIntroduction to Explicit Cursors. Copyright 2008, Oracle. All rights reserved.
Introduction to Explicit Cursors Introduction to Explicit Cursors 2 What Will I Learn? In this lesson, you will learn to: Distinguish between an implicit and an explicit cursor Describe why and when to
More informationDatabase Systems: Design, Implementation, and Management Tenth Edition. Chapter 8 Advanced SQL
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 8 Advanced SQL SQL Join Operators Join operation merges rows from two tables and returns the rows with one of the following:
More informationLexical Considerations
Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.035, Fall 2005 Handout 6 Decaf Language Wednesday, September 7 The project for the course is to write a
More informationSQL User Defined Code. Kathleen Durant CS 3200
SQL User Defined Code Kathleen Durant CS 3200 1 User Session Objects Literals Text single quoted strings Numbers Database objects: databases, tables, fields, procedures and functions Can set a default
More informationInterview Questions on DBMS and SQL [Compiled by M V Kamal, Associate Professor, CSE Dept]
Interview Questions on DBMS and SQL [Compiled by M V Kamal, Associate Professor, CSE Dept] 1. What is DBMS? A Database Management System (DBMS) is a program that controls creation, maintenance and use
More informationOracle. Exam Questions 1Z Oracle 11g: Advanced PL/SQL. Version:Demo. 1Z0-146 Exam Questions Demo https://www.passcertsure.
Oracle Exam Questions 1Z0-146 Oracle 11g: Advanced PL/SQL Version:Demo 1. Identify two strategies against SQL injection. (Choose two.) A. Using parameterized queries with bind arguments. B. Use subprograms
More informationProje D2K. CMM (Capability Maturity Model) level Project Standard:- Corporate Trainer s Profile
D2K Corporate Trainer s Profile Corporate Trainers are having the experience of 4 to 12 years in development, working with TOP CMM level 5 comapnies (Project Leader /Project Manager ) qualified from NIT/IIT/IIM
More informationSQL: Data De ni on. B0B36DBS, BD6B36DBS: Database Systems. h p://www.ksi.m.cuni.cz/~svoboda/courses/172-b0b36dbs/ Lecture 3
B0B36DBS, BD6B36DBS: Database Systems h p://www.ksi.m.cuni.cz/~svoboda/courses/172-b0b36dbs/ Lecture 3 SQL: Data De ni on Mar n Svoboda mar n.svoboda@fel.cvut.cz 13. 3. 2018 Czech Technical University
More informationOracle Database: Program with PL/SQL Ed 2 Erlernen Sie diese leistungsstarken Programmiersprache
Oracle Database: Program with PL/SQL Ed 2 Erlernen Sie diese leistungsstarken Programmiersprache Preis: This Oracle Database: Program with PL/SQL training starts with an introduction to PL/SQL and then
More informationLexical Considerations
Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.035, Spring 2010 Handout Decaf Language Tuesday, Feb 2 The project for the course is to write a compiler
More information3.Constructors and Destructors. Develop cpp program to implement constructor and destructor.
3.Constructors and Destructors Develop cpp program to implement constructor and destructor. Constructors A constructor is a special member function whose task is to initialize the objects of its class.
More informationDATABASE DESIGN - 1DL400
DATABASE DESIGN - 1DL400 Fall 2015 A course on modern database systems http://www.it.uu.se/research/group/udbl/kurser/dbii_ht15 Kjell Orsborn Uppsala Database Laboratory Department of Information Technology,
More information