Unix Technical Forum

Replace a carriage return in a text field

This is a discussion on Replace a carriage return in a text field within the Informix forums, part of the Database Server Software category; --> Hello, I need to remove carriage returns in a text field. Does anyone know how to do this? I've ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 04:33 PM
jared.hanks@gmail.com
 
Posts: n/a
Default Replace a carriage return in a text field

Hello,

I need to remove carriage returns in a text field. Does anyone know
how to do this? I've tried the following:

update item_table
Set long_description = replace(long_description,"~r"," ")
where inv_id = "130539";

and I get the following error: "674: Routine (replace) can not be
resolved."

I've also tried:

Update items_table
Set long_description = replace(replace(long_description,
char(10),char(13)),char(13),' ')
where inv_id = "130539";

and I get the following error: "674: Routine (char) can not be
resolved."

I tried looking at the manual but couldn't figure it out.

Any help is appreciated.

Thanks,
Jared

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 04:33 PM
Ashish Singhal
 
Posts: n/a
Default Can i use connect by prior in IDS Select query?

Hi,

I am very new to informix, wants to know dose the connect by prior clause
will work with IDS.
if not then is there anything similar to that.

Regards,
Ashish


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:23 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com