Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

dbms_output.put_line print tabs PL/SQL

Posted on 2003-11-04
3
7,626 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

828 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