Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 297
  • Last Modified:

Update a part of a field.


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
0
MikeMCSD
Asked:
MikeMCSD
1 Solution
 
pivarCommented:
Hi,

Try


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


/peter
0
 
MikeMCSDAuthor Commented:
perfect, . .  thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now