SQL*Plus and IF Logic [message #7658] |
Fri, 27 June 2003 09:02 |
DB
Messages: 7 Registered: February 2003
|
Junior Member |
|
|
I'm trying to work this out ...
In SQL*Plus create a cursor variable cv
Then in PL/SQL execute a query along the lines of:
open :cv for
select ... blah blah blah
Return to SQL*Plus and:
format column ...
format column ...
print cv
==========
The above works fine. When I find data it prints out exactly right. My question is: if I don't find data is there any technique to avoid running the print cv statement, or avoid printing the blank results, in SQL*Plus?
Thanks so much!
|
|
|
|