Quote:
Originally posted by kelly_l_brown
When I use print query_output I get this:
print query_output
*
ERROR at line 9:
ORA-06550: line 9, column 1:
PLS-00103: Encountered the symbol "PRINT"
|
Sorry, I should have said: the PRINT command is a SQL Plus command, not a PL/SQL command:
SQL> VARIABLE query_output REFCURSOR
SQL> BEGIN
open :query_output for
select p.title, t.toc
from mpd.toc t,
mpd.product p
where p.project_number = t.project_number
and isbn = '0072822015';
end;
/
PL/SQL procedure successfully completed.
SQL> PRINT :query_output
(results shown here)
Quote:
Originally posted by kelly_l_brown
//The output I get is:
TITLE
--------------------------------------------------------------------------------
TOC
--------------------------------------------------------------------------------
Beginning & Intermediate Algebra with SMART CD
<h1>Hall-Mercer, Beginning & Intermediate Algebra: The Language and Symbolism of
** I don't get the entire field
|
Right, I see what you mean now! You need to format the output in SQL Plus. Something like this:
SQL> COLUMN toc FORMAT A80 WRAP
Then run the SQL again.