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 > How to replace characters within a TEXT field?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-16-04, 20:59
athensy athensy is offline
Registered User
 
Join Date: Feb 2004
Posts: 29
How to replace characters within a TEXT field?

Hi everybody,

Suppose I have a TEXT field, and the data it contains with several '!' characters at random positions. I need to replace them with another character, said '@'. How could I do it? Could anyone give me hints, information about this?

Thanks in advance.
Athens.
Reply With Quote
  #2 (permalink)  
Old 02-19-04, 01:31
athensy athensy is offline
Registered User
 
Join Date: Feb 2004
Posts: 29
I have solved this problem already. It just uses Informix built-in function REPLACE for my task as follows:

select replace(theTextField, '!', '@')
from my_table;

Thanks for all guys who concern about my problem.
Athens.
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