.networks
Welcome to my .NET related blog!
Wednesday, 9 April 2008
Using PL-SQL REPLACE function
Examples:
SELECT REPLACE(url, 'localhost:1001','localhost') AS Test
FROM cmn_pt_site_map
WHERE url LIKE '%localhost:1001%'
UPDATE cmn_pt_site_map
SET url = REPLACE(url, 'localhost:1001','localhost')
WHERE url LIKE '%localhost:1001%'
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment