Solved

dbms_output.put_line print tabs PL/SQL

Posted on 2003-11-04
3
8,199 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
[X]
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
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
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…
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 copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
Suggested Courses

632 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