Solved

replace some word in colum  Sql mysql

Posted on 2010-11-24
5
294 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
ID: 34210767
'¿¿¿'  mean extension
0
 
LVL 23

Assisted Solution

by:Rajkumar Gs
Rajkumar Gs earned 133 total points
ID: 34210775
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
ID: 34210777
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
ID: 34210783
If '¿¿¿' at the end then:
Update table TableName set a = left(a,length(a)-3);
0
 
LVL 24

Expert Comment

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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

777 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