user3724969
user3724969

Reputation: 1

Replace a string by another in cognos using oracle database

i have a string "/folder[@name='Location/louvre']/directory[@name='Documents']" and i want to replace /folder[@name= by "loc>pl", i'm using the replace function but it doesn't work so.

Upvotes: 0

Views: 669

Answers (1)

rtbf
rtbf

Reputation: 1587

works for me, remember about double quotes:

select 
 replace('/folder[@name=''Location/louvre'']/directory[@name=''Documents'']',
 '/folder[@name=',
 'loc>pl') 
from dual;

Upvotes: 1

Related Questions