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: Thomas L. Harleman <tharleman_at_iquest.net>
Date: Wed, 9 Aug 2000 14:18:58 -0500
Message-Id: <10584.114203@fatcity.com>


According to Oracle8 Documentation:

Using DELETE
This procedure has three forms. DELETE removes all elements from a collection. DELETE(n) removes the nth element from anested table. Try this:
  If condition is true then

     Pl_Ip_Param_Tab.DELETE;
  End if;

Tom Harleman
11080 Willowmere Dr.
Indianapolis, IN 46280
317-844-2884 Home
317-843-9122 Home Office

-----Original Message-----
From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of ARUN K C Sent: Tuesday, August 08, 2000 5:16 PM
To: Multiple recipients of list ORACLE-L Subject: Deleting rows from Pl/sql table

We are using pl/sql table in our programme To my surprise i am able to use all the facilities of pl/sql table but for deleting the whole pl/sql table itself.
Can anyone let me know where exactly the error in the following syntax.

DECLARE
  TYPE Ip_Param_Tab IS TABLE OF Number INDEX BY BINARY_INTEGER;   Pl_Ip_Param_Tab Ip_Param_Tab;
BEGIN
  If condition is true then

     Pl_Ip_Param_Tab := Null;
  End if;
END; This gives me a compilation error message saying "expression is of wrong type” at this line ===> "Pl_Ip_Param_Tab := Null;"

Thanks in advance
Arun



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
--
Author: ARUN K C
  INET: arun_k_c_at_hotmail.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Aug 09 2000 - 14:18:58 CDT

Original text of this message

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