Solved

How can I replace $$ with $ where its part of field in MySQL ?

Posted on 2010-09-15
2
319 Views
Last Modified: 2012-05-10
I've just noticed I have $$ at the start of all my prices.

I need to correct this, so that I have $ instead.

I need an update query to fix this..
0
Comment
Question by:mindwarpltd
2 Comments
 
LVL 19

Accepted Solution

by:
Bhavesh Shah earned 250 total points
ID: 33681745
GENERALLY IT IS LIKE

UPDATE TABLENAME
SET COLUMN1 = REPLACE(COLUMN1,'$$','$')
where column1 like '%$$%'
0
 
LVL 7

Assisted Solution

by:waltersnowslinarnold
waltersnowslinarnold earned 250 total points
ID: 33681769
Use the following code sample
UPDATE TableName

SET COLUMN1 = REPLACE(COLUMN1,'$$','$')

WHERECOLUMN1 like '$$%'

Open in new window

0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
myqsl update statement on phpMyAdmin 8 21
grouping logic 6 46
RDBMS and No sql database 4 43
Steps to produce a data strategy 5 40
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

911 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

20 Experts available now in Live!

Get 1:1 Help Now