Home » SQL & PL/SQL » SQL & PL/SQL » Want to TAB space in between DBMS_OUTPUT
Want to TAB space in between DBMS_OUTPUT [message #171816] Thu, 11 May 2006 10:36 Go to next message
faiz_hyd
Messages: 294
Registered: February 2006
Senior Member
Hello

I want to give TAB space in between DBS_OUTPUT.

example
dbms_output.put_line('Completed the old stored proc' ||'TAB SPACE HERE'|| 'rest of sting ');



Thanks
Re: Want to TAB space in between DBMS_OUTPUT [message #171820 is a reply to message #171816] Thu, 11 May 2006 10:48 Go to previous messageGo to next message
Art Metzer
Messages: 2480
Registered: December 2002
Senior Member
You want CHR(9).
Try
SQL> SET SERVEROUTPUT ON SIZE 1000000 FORMAT WRAPPED
SQL> EXEC DBMS_OUTPUT.PUT_LINE('Completed the old stored proc' || CHR(9) || 'rest of string.');
Completed the old stored proc   rest of string.
 
PL/SQL procedure successfully completed.
 
SQL>
Re: Want to TAB space in between DBMS_OUTPUT [message #171821 is a reply to message #171816] Thu, 11 May 2006 10:55 Go to previous messageGo to next message
Yasir Hashmi
Messages: 304
Registered: April 2006
Senior Member
whats wrong with this??
dbms_output.put_line('Completed the old stored proc' ||' '|| 'rest of sting ');
Re: Want to TAB space in between DBMS_OUTPUT [message #171824 is a reply to message #171821] Thu, 11 May 2006 11:07 Go to previous messageGo to next message
faiz_hyd
Messages: 294
Registered: February 2006
Senior Member
Thanks Art

It worked with chr(9)

Yasir i want to give a exact tab space between the output
because the output has some meaningful data.


Thanks

[Updated on: Thu, 11 May 2006 11:07]

Report message to a moderator

icon3.gif  Exact Spacing [message #171852 is a reply to message #171816] Thu, 11 May 2006 15:39 Go to previous messageGo to next message
rare
Messages: 6
Registered: May 2006
Location: Minneapolis, MN
Junior Member
If you're concerned with spacing, you might want to look up the LPAD and RPAD functions. The TAB character can be interpretted differently depending on what's viewing it.
Re: Exact Spacing [message #171877 is a reply to message #171852] Fri, 12 May 2006 00:29 Go to previous messageGo to next message
Frank
Messages: 7901
Registered: March 2000
Senior Member
What is so strange about wanting a tab-character? Never heard of tab-delimited files instead of comma-delimited?
Erm [message #171879 is a reply to message #171816] Fri, 12 May 2006 00:42 Go to previous message
rare
Messages: 6
Registered: May 2006
Location: Minneapolis, MN
Junior Member
My apologies for trying to be helpful. Your question made it sound like you were formatting output for the screen and didn't mention spooling it to a file.

In your vein, have you ever heard of fixed-width files as opposed to CSV or tab delimited files?
Previous Topic: Computing average for the time
Next Topic: ODBC opning error in crystal report
Goto Forum:
  


Current Time: Sat May 17 16:29:13 CDT 2025