Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 17 Aug 2005 @ 10:15:30 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


Subj:   Generating Oracle's chr(10)
 
From:   preetham

hi,

I want the Teradata counterpart for the following Oracle Query,

     select 'hello' || chr(10) || 'world' from dual;

     OUTPUT :
     'hello' ||
     -----------
     hello
     world

In Teradata, similar Query,

     select 'hello' || chr(10) || 'world' ;

     returns

     (('hello'||chr(10))||'world')
     -----------------------------
     hello world

which is not what i neeeeed.

Have already tried with :

     select 'hello' || '0D0A'xc || 'world';

this gives the following result.

     (('hello'||'  ')||'world')
     --------------------------
     hello  world

which also doesnt work for me....

The above query will be run through JDBC, so i cant use the SET FOLDLINE trick mentioned in the Forum.

Please suggest.

Is there a teradata counterpart for chr(10) in oracle.


Regards

Preetham.



     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023