Solved

replace some word in colum  Sql mysql

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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Creating and Managing Databases with phpMyAdmin in cPanel.
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

713 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