View Single Post
  #1 (permalink)  
Old 04-10-2008, 12:21 AM
raghu408 raghu408 is offline
Member
 
Join Date: Apr 2008
Posts: 4
raghu408 is on a distinguished road
How to parse String effectively based on a dilimiter
If i have a string like :

update employee
set wtKey = name||pno||id
where id is not null

Then my API should return this when i pass "||"

name||pno||id

I tried doing it using ' ' as dilimiter and check to see if the parsed string has || but that won't work when the above update cmd is written in the following manner:

update employee
set wtKey = name || pno || id
where id is not null

(or)

update employee
set wtKey = name|| ' ' ||id
where id is not null

Is there any API or third party stuff that can perform such operation instead of we parsing it based on some assumptions.
Any help would be appreciated
Reply With Quote
Sponsored Links