Unix Technical Forum

Query Problem

This is a discussion on Query Problem within the Sybase forums, part of the Database Server Software category; --> Hi, We have a table ci_acct_oper_instrs having with one of the fields as txt_acct_oper_instrs1 char(255) null A sample value ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 03:03 PM
Lalit
 
Posts: n/a
Default Query Problem

Hi,
We have a table ci_acct_oper_instrs having with one of the fields as
txt_acct_oper_instrs1 char(255) null

A sample value of the data in the field is "ABCD$$$$NMKUY$$JUKL$ANH$
$$ adfd"

In our stored procedure while selecting this field, we want to
replace all the instances of character '$' by '#' . The position and
number of '$' in the data varies from record to record. Is there a
system procedure/function which we can use to achieve the above?

Regards
Lalit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 03:05 PM
Paul
 
Posts: n/a
Default Re: Query Problem

issues_sybase@hotmail.com (Lalit) wrote in message news:<7bcd3933.0310302013.4ec0cd41@posting.google. com>...
> Hi,
> We have a table ci_acct_oper_instrs having with one of the fields as
> txt_acct_oper_instrs1 char(255) null
>
> A sample value of the data in the field is "ABCD$$$$NMKUY$$JUKL$ANH$
> $$ adfd"
>
> In our stored procedure while selecting this field, we want to
> replace all the instances of character '$' by '#' . The position and
> number of '$' in the data varies from record to record. Is there a
> system procedure/function which we can use to achieve the above?
>
> Regards
> Lalit



Using a combination of the SQl commands stuff and replicate you should
be able to so this. You will need to look at the TSQL sybase manual
for a full explaination
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:27 PM.


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