Update a part of a field.

MikeMCSD
MikeMCSD used Ask the Experts™
on

I want to change the end part of the filename
from:
0000229_0.pjpeg
to:
0000229_0.jpg

How do I do this? I know this won't:

UPDATE Nop_Product
SET AdminComment = 'jpg'
WHERE AdminComment = 'pjpeg'

thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
Hi,

Try


UPDATE Nop_Product
SET AdminComment = REPLACE(AdminComment, '.pjpeg', '.jpg')
WHERE AdminComment LIKE '%.pjpeg'


/peter

Author

Commented:
perfect, . .  thank you

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial