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!

Ora-01744 Inappropriate into (Oracle 19)

spuchcDec 19 2022

I have the code below that works fine in Oracle 11, when loaded into Oracle 19 I get Ora-01744 and not sure why? and/or what I need to change to make it work.
Type Letter_Flds Is Record(Letter Varchar2(3));
Type Tab_Letters Is Table Of Letter_Flds;
Rec_Letters Tab_Letters := Tab_Letters();
Procedure Generate_Excel_Letters
Is
Begin
With letters
As (Select chr( ascii('A')+level-1 ) letter
Bulk Collect Into Rec_Letters
From dual
Connect By Level <= 26)
Select * From letters
Union All
Select l1.letter || l2.letter
From letters l1, letters l2
End Generate_Excel_Letters;

This post has been answered by spuchc on Dec 20 2022
Jump to Answer
Comments
Post Details
Added on Dec 19 2022
16 comments
286 views