?
Solved

Update a part of a field.

Posted on 2011-09-02
2
Medium Priority
?
290 Views
Last Modified: 2012-05-12

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
Comment
Question by:MikeMCSD
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 22

Accepted Solution

by:
pivar earned 2000 total points
ID: 36476150
Hi,

Try


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


/peter
0
 
LVL 16

Author Comment

by:MikeMCSD
ID: 36476178
perfect, . .  thank you
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question