Skip to Main Content
Advanced Oracle PL/SQL Programming with Packages
book

Advanced Oracle PL/SQL Programming with Packages

by Steven Feuerstein
October 1996
Intermediate to advanced content levelIntermediate to advanced
687 pages
16h 41m
English
O'Reilly Media, Inc.
Content preview from Advanced Oracle PL/SQL Programming with Packages

8.5. Setting the Display Prefix

The PLVtab set_prefix procedure allows you to specify a prefix that is to be displayed before the row values. This prefix is only displayed when you are not showing the row numbers. The default value for the prefix is NULL, which means that you don't see any prefix unless you call the set_prefix program. The header for this procedure is:

PROCEDURE set_prefix (prefix_in IN VARCHAR2 := NULL)

Since the single argument has a default value of NULL, you can set the prefix back to its default value simply by entering this command:

SQL> PVLtab.set_prefix;

The following script shows you how the prefix is set and used in the display of PLVtab table information.

DECLARE
   nms PLVtab.vc80_table;
   lo INTEGER;
   hi INTEGER;
BEGIN
   PLVtab.noshowrow;
   PLVtab.set_prefix ('Company Name = ');
   nms (1505) := 'ACME';
   nms (20200) := 'ArtForms';
   lo := 1505;
   hi := 20200;
   PLVtab.display (nms, hi, 'Selected Company Names', lo, hi-lo);
END;
/
Selected Company Names
Company Name = ACME
Company Name = ArtForms
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 Database 12c PL/SQL Programming

Oracle Database 12c PL/SQL Programming

Michael McLaughlin
Oracle PL/SQL for DBAs

Oracle PL/SQL for DBAs

Arup Nanda, Steven Feuerstein
Expert Oracle PL/SQL

Expert Oracle PL/SQL

Ron Hardman, Michael McLaughlin

Publisher Resources

ISBN: 1565922387Supplemental ContentCatalog PageErrata