Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Deleting rows from Pl/SQL table

RE: Deleting rows from Pl/SQL table

From: Jamadagni, Rajendra <rajendra.jamadagni_at_espn.com>
Date: Wed, 9 Aug 2000 08:26:55 -0400
Message-Id: <10584.114167@fatcity.com>


Arun,

There are two solutions .....

  1. plsql_table.DELETE will delete all rows.
  2. In the declare section, declare another pl/sql table of the same type DECLARE tbl_actual_table my_plsql_tab_type; -- this is your actual table tbl_null my_plsql_tab_type; -- this is a null table, never to be used begin
    • need to reset the plsql table ...
      • first method ... tbl_actual_Table.DELETE;
      • or second method tbl_actual_table := tbl_null; -- this might be little faster.. .... other code goes here ...

HTH
Raj



Rajendra Jamadagni MIS, ESPN Inc.
Rajendra dot Jamadagni at ESPN dot com
QOTD: Any clod can have facts, but having an opinion is an art ! Any opinion expressed here is personal and doesn't reflect that of ESPN Inc. Received on Wed Aug 09 2000 - 07:26:55 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US