Problem with collections, casting and ORA 904
From: Andrew Hardy <nobody_at_spam.from.news.AdvanticaTech.com>
Date: Wed, 3 Oct 2001 19:46:38 +0100
Message-ID: <9pfmfl$733$1_at_sun-cc204.lut.ac.uk>
[Quoted] I have the following types defined:
Date: Wed, 3 Oct 2001 19:46:38 +0100
Message-ID: <9pfmfl$733$1_at_sun-cc204.lut.ac.uk>
[Quoted] I have the following types defined:
TYPE t_stfr_rec AS OBJECT
(
stfa_id NUMBER
,datestamp DATE
,withdrawal_qty NUMBER
,injection_qty NUMBER
,period_start DATE
,period_end DATE
);
TYPE t_stfr_table AS TABLE OF t_stfr_rec;
and a function defined as:
FUNCTION get_stfr
RETURN t_stfr_table;
I thought that I would be able to access this type using
SELECT * FROM table(get_stfr AS t_stfr_table))
[Quoted] but I get an ORA 904 referring to get_stfr.
What am I doing wrong?
Andy
-- Opinions are mine and do not necessarily reflect those of Advantica Technologies LtdReceived on Wed Oct 03 2001 - 20:46:38 CEST