Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: force a title to print in sqlplus
On 5/13/05, Ruth Gramolini <rgramolini_at_tax.state.vt.us> wrote:
> Good morning all,
> One of my developers wants to know if there is a way to force the ttitle =
to
> print on a report even if no rows are found. Does anyone know how to do
> this?
>=20
Hi!
Maybe by adding a computation on the report (the chosen column must have a not null constraint):
SQL> ttitle Hello SQL> break on report SQL> compute count of empno on report SQL> select * from emp where 1=3D0; Fri May 13 page=
1
Hello EMPNO ENAME JOB MGR HIREDATE SAL COMM---------- ---------- --------- ---------- --------- ---------- ----------
DEPTNO
0
no rows selected
SQL>
-- http://www.freelists.org/webpage/oracle-lReceived on Fri May 13 2005 - 10:22:42 CDT
![]() |
![]() |