Just in case: that's 2 single quotes in S_NAME = ''.
It would be useful if you told us how it's not working. Is it rejecting your syntax (what error appears?), or does it give the wrong results (what does happen?)?
It gives no error, it just shows 0 processed tables or whatever it shows (its in norwegian so dont know what it had in the english version) i remember i had something similar ages ago and it was something similar as in the command
You can ignore my previous post, it probably won't help.
What exactly are you trying to do?
If you want to change S_NAME when it contains just the text 'OLD', then LittleSmudge's solution is perfect.
If you want to eliminate the text 'OLD' wherever it appears in the field, then use: [tt]UPDATE songs SET s_name=REPLACE(s_name,'OLD','')[/tt]
or, if you want a record count: [tt]UPDATE songs SET s_name=REPLACE(s_name,'OLD','') WHERE s_name LIKE '%OLD%'[/tt]
I wasn't comfortable that I was addressing the right issue but I couldn't see what else they might be trying to do.
I think you've seen through the fog now.
G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
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.