If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Interbase 6 - how do I get the same results as REPLACE in MSSQL with Interbase SQL
I have a field which stores the location of a tiff file.
Example \\PCT01\Images\7\368.TIF
I need to replace all of them with a new path of \\server01\applications\tsteam\data\Images\7\368.T IF
I can select them
SELECT FULLFILEPATH FROM NEWTABLE
HOW DO I SELECT EACH ONE STRIP THE REPLACE THE PART OF THE STRING I DON"T WANT AND REPLACE IT WITH THE ONE I DO WANT.
I use MS SQL everyday but cursor and replace aren't supported by Interbase so I'm not sure what I can use to replace part of a string and loop through each record and update it.
Does your version of firebird support the Substr and Pos functions?
__________________
Lou
使大吃一惊
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert
POSITION See below Returns the start position of the first string inside the second string, relative to the beginning of the outer string. In the second form, an offset position may be supplied so that the function returns a result relative to that position in the outer string.