If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > change LF and | in select statement

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-10-04, 20:49
raylade raylade is offline
Registered User
 
Join Date: Nov 2004
Location: sydney, australia
Posts: 2
Post change LF and | in select statement

using informix isql, in a select statement, i want to REPLACE a pipe with a slash and a linefeed with a space. REPLACE(col,'|','/')etc work fine, but how do i address the LF as REPLACE(col, CHAR(10), ' ')etc grumbles about the clause CHAR The oracle syntax is: translate(a_char_column, '|'||chr(10), '/ ') from a_table;

Last edited by raylade; 11-10-04 at 21:44.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On