DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Equivalent of BREAK ON BLABLA in PL*SQL

  1. #1
    Join Date
    Nov 2002
    Location
    Dublin, Ireland
    Posts
    133

    Equivalent of BREAK ON BLABLA in PL*SQL

    Hi all,

    What's the equivalent of "BREAK ON BLABLA" in PL*SQL.
    eg:
    from SQLPLUS prompt I can do "BREAK ON TABLESPACE_NAME"
    How do I write it in PL*SQL?

    TIA
    Giani

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    SQL*Plus is a tool. You can do lots of pretty formatting and such with it.

    PL/SQL is a programming language (more or less, no flames please). You write a function/procedure and can format the results from the host language from which you called the procedure.

    In other words, you can't do it.
    Jeff Hunter

  3. #3
    Join Date
    May 2002
    Posts
    2,645
    You can create an artificial break by doing a test (if-then-else) on the tablespace name.

    Pretend you are coding in COBOL, doing record keeping.

    current record = ts name of interest
    do a check to see if select ts name = current record
    if so, do whatever
    if not (the "else"), current record = new ts name


    When the tablespace name changes, skip a line, output the new tablespace name, and continue.

    You can find an example of this in a generic programming logic book.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width