Solved

replace some word in colum  Sql mysql

Posted on 2010-11-24
5
298 Views
Last Modified: 2012-05-10
How can i replace '¿¿¿'  to 'ext' in column a
0
Comment
Question by:teera
[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
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

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

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

I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

627 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