Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

TYPE object and Table function

user525275Nov 7 2009 — edited Nov 8 2009
Hi
Can i query the table object by passing a parameter like this. I get error invalid date type. How to do this please. Letters in bold get the error.
declare

cursor emp_cv is select building,category,amount from fa_locations fl ,fa_categories fc
                       where fl.location_id=fc.location_id;

TYPE l_building_tbl_type IS TABLE OF fa_locations.segment5%TYPE;

l_building_tbl l_building_tbl_type;

begin

FETCH emp_cv bulk collect into l_building_tbl
                                           ,l_category_tbl
                                           ,l_amt_tbl;

*select count(*) from table(cast(l_building_tbl as l_building_tbl_type))*
*where l_building_tbl='MFG';*


end;

                              
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 6 2009
Added on Nov 7 2009
3 comments
567 views