Q
Problem solve Get help with specific problems with your technologies, process and projects.

Out of limit message when looping

I am writing a piece of code in PL/SQL. I am looping from 0 to 5. When I try to index my varray (size_limit =100), I get a message that I'm out of limit. How could that be?

I need some help. I am writing a piece of code in PL/SQL. I am looping from 0 to 5. When I try to index my varray (size_limit =100), I get a message that I'm out of limit. How could that be? Can you please help me?
You are receiving an "out of limit" error because your index values begin with 0. Subscript index values begin at 1, not zero. In most other programming languages, including Java, C and C++, subscript index values begin with 0.

Change the values of your indexes from 1 – 6 and your procedure will work.

Dig Deeper on Using Oracle PL-SQL

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close