Solved

dbms_output.put_line print tabs PL/SQL

Posted on 2003-11-04
3
7,212 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
Comment Utility
try this:

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

Expert Comment

by:Kong
Comment Utility
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
Comment Utility
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.

Join & Write a Comment

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now