A Guide to SQL
A Guide to SQL
9th Edition
ISBN: 9781111527273
Author: Philip J. Pratt
Publisher: Course Technology Ptr
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 8, Problem 9RQ

Explanation of Solution

Declaring variables in PL/SQL procedures:

In PL/SQL procedures, the variables are declared before any procedural code.

/*Create a procedure*/

CREATE OR REPLACE PROCEDURE DISP_REP_NAME (I_REP_NAME IN REP.REF_NUM%TYPE) AS

/*Declaring the local variable*/

I_LASI_NAME REP.LAST_NAME%TYPE ;

I_FIRST_NAME REP...

Blurred answer
Students have asked these similar questions
Difference between procedure and function in SQL
Can we use DDL and DML statements in Function SQL?
What method of Statement is used if you want to execute DELETE SQL statement?
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    A Guide to SQL
    Computer Science
    ISBN:9781111527273
    Author:Philip J. Pratt
    Publisher:Course Technology Ptr
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr