WHY IT'S NOT [message #242494] |
Sat, 02 June 2007 15:53 |
rajat_chaudhary
Messages: 141 Registered: November 2006 Location: india
|
Senior Member |
|
|
Hi everyone,
see the following query ,it's in oracle 9.2.0.1.0
DECLARE
TYPE C_REC IS RECORD(ID DEICMAIN.DCAN%TYPE,INC DEICMAIN.INC%TYPE);
TYPE C_TABLE IS TABLE OF C_REC
INDEX BY BINARY_INTEGER;
C_TAB C_TABLE;
BEGIN
SELECT DCAN,INC BULK COLLECT INTO C_TAB FROM DEICMAIN;
FOR I IN 1..C_TAB.COUNT LOOP
DBMS_OUTPUT.PUT_LINE(C_TAB(I).ID);
END LOOP;
END;
but if the same i am firing in oracle 9.1 then it gives an error at the following highlighted porion
DECLARE
TYPE C_REC IS RECORD(ID DEICMAIN.DCAN%TYPE,INC DEICMAIN.INC%TYPE);
TYPE C_TABLE IS TABLE OF C_REC
INDEX BY BINARY_INTEGER;
C_TAB C_TABL;
BEGIN
SELECT DCAN,INC BULK COLLECT INTO C_TAB FROM DEICMAIN;
END;
is it like that this query is new introduced in oracle 9.2 version.
RAJAT CHAUDHARY
[Updated on: Sat, 02 June 2007 15:58] Report message to a moderator
|
|
|
|
|
|
|
Re: WHY IT'S NOT [message #242697 is a reply to message #242693] |
Mon, 04 June 2007 13:22 |
|
Michel Cadot
Messages: 68718 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Each version has its limitations, each next version remove some limitations.
In your case, you have some limitations in 9.0 that were removed in 9.2.
Conclusion: use 9.2.
Btw, 9.0 was the most buggy version that Oracle ever released.
Regards
Michel
|
|
|