Skip to Content
Oracle® PL/SQL® Interactive Workbook, Second Edition
book

Oracle® PL/SQL® Interactive Workbook, Second Edition

by Benjamin Rosenzweig, Elena Silvestrova
October 2002
Intermediate to advanced
688 pages
14h 14m
English
Pearson
Content preview from Oracle® PL/SQL® Interactive Workbook, Second Edition

Chapter 3 General Programming Language Fundamentals

1)Write a PL/SQL block
  1. That includes declarations for the following variables:

    A VARCHAR2 data type that can contain the string ‘Introduction to Oracle PL/SQL’

    A NUMBER that can be assigned 987654.55, but not 987654.567 or 9876543.55

    A CONSTANT (you choose the correct data type) that is autoinitialized to the value ‘603D’

    A BOOLEAN

    A DATE data type autoinitialized to one week from today

  2. In the body of the PL/SQL block, put a DBMS_OUTPUT.PUT_LINE message for each of the variables that received an autoinitialization value.

  3. In a comment at the bottom of the PL/SQL block, state the value of your NUMBER data type.

A1: Answer: Your answer should look similar to the following:
 SET SERVEROUTPUT ON DECLARE ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle Enterprise Manager 10g Grid Control Handbook

Oracle Enterprise Manager 10g Grid Control Handbook

Werner De Gruyter, Matthew Hart, Daniel Nguyen
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz
Oracle® Database 10g Insider Solutions

Oracle® Database 10g Insider Solutions

Arun Kumar R., John Kanagaraj, Richard Stroupe

Publisher Resources

ISBN: 0130473200Purchase book