3

Is there an easy way to declare a dynamic array in Oracle PL/SQL?

I need to use an array that can contain 100,000 numbers and other times I need to store only 3 numbers

1 Answer 1

17

There are three types of collection in PL/SQL. Only the varrays have a fixed maximum number of elements. If you use a nested table or an associative array instead, you can add as many element as you want.

For further reading: PL/SQL Collections and Records

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.