Reputation: 1
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
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