Skip to Content
Oracle PL/SQL Programming: A Developer's Workbook
book

Oracle PL/SQL Programming: A Developer's Workbook

by Steven Feuerstein, Andrew Odewahn
May 2000
Intermediate to advanced
594 pages
11h 32m
English
O'Reilly Media, Inc.
Content preview from Oracle PL/SQL Programming: A Developer's Workbook

Intermediate

Q:

9-16.

The statements are:

  1. False. This view lists “database objects” (as opposed to “object objects”) owned by the user, such as tables, procedures, and packages. USER_OBJECTS has been around for quite some time. Now with the Objects option, its name will be confusing.

  2. True. An object type is a database construct, created with a CREATE TYPE statement, and therefore appears in the USER_OBJECTS view.

  3. False. An object instance, which can be a persistent row in an object table or held temporarily in a PL/SQL variable, does not have an entry in USER_OBJECTS. This is consistent with Oracle’s treatment of other rows in (nonobject) tables and values held in (nonobject) PL/SQL variables.

Q:

9-17.

The statements are:

  1. False. The constructor function cannot be modified.

  2. True. The constructor can be called in SQL or PL/SQL.

  3. True. Like other Oracle functions, the constructor can use named notation or positional notation:

    DECLARE
       cd_to_avoid   CD_t;
    BEGIN
       cd_to_avoid := CD_t (
          id => -1000000,
          artist => 'Garth Brooks',
          title => 'Salutes The Chipmunks',
          label => 'Nonesuch' );

    Constructor CD_t is invoked using this named notation.

Q:

9-18.

An object type attribute cannot have a DEFAULT value (e.g., ‘Greatest Hits’). This means that a call to a constructor must supply a value—or the nonvalue NULL—for every attribute of the object type.

Q:

9-19.

The syntax for creating an object type specification is a comma-separated list of attributes and methods; you do not use semicolons in the list, as you’d find in ...

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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Oracle Database 12c PL/SQL Advanced Programming Techniques

Oracle Database 12c PL/SQL Advanced Programming Techniques

Michael McLaughlin, John Harper

Publisher Resources

ISBN: 9781449324070Errata Page