Solved

dbms_output.put_line print tabs PL/SQL

Posted on 2003-11-04
3
7,758 Views
Last Modified: 2008-02-01
a newbie question

how do i print tabs while using dbms_output.put_line so that output can be tab delimited something like this:

title      price
title a   2.00
title b   3.00
0
Comment
Question by:blizz_ard
3 Comments
 
LVL 23

Accepted Solution

by:
seazodiac earned 20 total points
ID: 9683714
try this:

select  title||chr(9)||price as "title      price"  from <table_name>;
0
 
LVL 2

Expert Comment

by:Kong
ID: 9683933
seazodiac is right, chr(9) is the TAB character, use in dbms_output as follows:

set serveroutput on
begin
   dbms_output.put_line ('a' || chr(9) || 'b');
end;
/
0
 

Author Comment

by:blizz_ard
ID: 9684073
both answers are right. thanks very much, i'll award the pts to seazodiac since it arrived first. thanks again
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Retreiving column names in Windows but not in Unix 11 75
Oracle Listener Not Starting 11 63
ODBC in excel 2016 in Windows 10 via VBA 16 237
update statement in oracle 9 37
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video shows how to recover a database from a user managed backup

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question