5

This is a pretty basic question, but here goes:

I have an array of VARCHAR2 strings in PL/SQL.

How can I print every element in that array?

2 Answers 2

12
for i in my_array.first..my_array.last loop
  --print me
end loop;
Sign up to request clarification or add additional context in comments.

Comments

6
for i in my_array.first..my_array.last loop

  dbms_output.put_line(my_array(i).col1Name||'  ' ||  my_array(i).col2Name|| '  '  ||my_array(i).col3Name);

end loop;

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.