Solved

replace some word in colum  Sql mysql

Posted on 2010-11-24
5
290 Views
Last Modified: 2012-05-10
How can i replace '¿¿¿'  to 'ext' in column a
0
Comment
Question by:teera
5 Comments
 

Author Comment

by:teera
Comment Utility
'¿¿¿'  mean extension
0
 
LVL 23

Assisted Solution

by:Rajkumar Gs
Rajkumar Gs earned 133 total points
Comment Utility
You can use REPALCE function
UPDATE YourTable SET YourColumn = replace (YourColumn, '¿¿¿', 'ext')

Open in new window


This will update any records that is having '¿¿¿' with 'ext'

Raj
0
 
LVL 52

Accepted Solution

by:
_agx_ earned 134 total points
Comment Utility
The question isn't clear.  "¿" usually represents an unknown character. ie Like if there's an encoding problem and some characters can't be translated, they're replaced with "¿" (unknown).




0
 
LVL 24

Assisted Solution

by:jimyX
jimyX earned 133 total points
Comment Utility
If '¿¿¿' at the end then:
Update table TableName set a = left(a,length(a)-3);
0
 
LVL 24

Expert Comment

by:jimyX
Comment Utility
If '¿¿¿' is representing extensions then:
Update table TableName set a = (left(a,length(a)-3)+'ext');
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Join & Write a Comment

'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now