Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to replace a substring in pl/sql

Status
Not open for further replies.

mokesql

Programmer
Sep 6, 2001
30
0
0
AT
hi!

i want to search a string for a substring and to replace it: if my string would be 'i am searching for a solution of my problem' i would as example would like to replace the substring 'problem' with the substring 'mass'. are there ways of doin it in pl/sql. thnx for the help

kemo
 
Try the REPLACE function:

SQL> select replace('i am looking for a problem','problem','answer') from dual;

REPLACE('IAMLOOKINGFORAPR
-------------------------
i am looking for a answer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top