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
Solved

replace some word in colum  Sql mysql

Posted on 2010-11-24
5
295 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

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 …
Foreword This article was written many years ago, in the days when PHP supported the MySQL extension (http://php.net/manual/en/function.mysql-connect.php).  Today (http://php.net/manual/en/migration70.removed-exts-sapis.php) you would not use MySQL…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

860 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