Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

hide column heading

580343Jul 12 2007 — edited Jul 12 2007
hi all,
I am using oracle 10g. i am new to procedures.
What i want is i can hide column by using SET HEADING OFF; in sql*plus.
But what i want i need to do this using procedure. not with sql command.

I wrote this procedure:

SQL> create or replace procedure SP_PROC
2 as
3 qry varchar2(30);
4 begin
5 qry := 'set heading off';
6 end SP_PROC;
7 /

Procedure created.

SQL> BEGIN
2 SP_PROC;
3 end;
4 /

PL/SQL procedure successfully completed.

This executed successfully but when i executed select statement the columns heading is not hiding.
when i do SET HEADING OFF; this it is getting hide. but i need to through procedure. Because from my front i can execute procedures not simple set commands.
Any help please urgent.
Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 9 2007
Added on Jul 12 2007
8 comments
3,147 views