Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Oracle/OAS
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Eclipse Collections Categorically: Level up your programming game
this week in the
Open Source Projects
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Oracle/OAS
PL/SQL Error
Tushar Ravi
Greenhorn
Posts: 10
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello friends,
I am facing an error if I use the tablename from the collection in PL/SQL.
Below is the SQL
SET serveroutput ON; DECLARE type code IS TABLE OF VARCHAR2(100); type pd_code IS TABLE OF VARCHAR2(100); tc code; pc pd_code; uri VARCHAR2(100); BEGIN SELECT DISTINCT code bulk collect INTO tc FROM my_tables my_tables FOR i IN tc.FIRST .. tc.LAST LOOP uri := SUBSTR(tc(i), 5, LENGTH(tc(i))); SELECT DISTINCT uri bulk collect INTO pc FROM tc(i); END LOOP; FOR i IN pc.FIRST .. pc.LAST LOOP DBMS_OUTPUT.PUT_LINE(pc(i)); END LOOP; END;
The error i get : SQL Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
for
SELECT DISTINCT uri bulk collect INTO pc FROM tc(i);
Can you please help?
Thanks in Advance
Tushar.
Wait for it ... wait .... wait .... NOW! Pafiffle! A perfect tiny ad!
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Please help! "Wrong number or types of arguments in call to 'PUT-LINE'
trying to get rows to ResultSet with CallableStatement and stored function
Fetching Data from PL-SQL Table as OUT parameter in Java
What is the use of using EXECUTE IMMEDIATE in Oraccle PL/SQL
More...