Hi,
Does anybody know how to replace a string in a column (several hundreds records), for ex, I want replace all the string ('cat') contained in the column COL1 of table 'Tab' with the new string ('dog'). Can I only use SQL to do this.
[tt]
UPDATE Tab
SET COL1 = 'dog'
WHERE COL1 = 'cat'
[/tt]
*cLFlaVA
----------------------------
A pirate walks into a bar with a huge ship's steering wheel down his pants.
The bartender asks, "Are you aware that you have a steering wheel down your pants?"
The pirate replies, "Arrrrr! It's driving me nuts!
Thanks clFlaVA, your response so fast. I am sorry I haven't said my question clearly. I want to replace sub strings in all the records of a column, for ex: the record: ' This is a cat' should be changed to ' This is a dog',...
*cLFlaVA
----------------------------
A pirate walks into a bar with a huge ship's steering wheel down his pants.
The bartender asks, "Are you aware that you have a steering wheel down your pants?"
The pirate replies, "Arrrrr! It's driving me nuts!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.