Jump to content

[Solved] SQL command - Please help


Recommended Posts

Hi all,

I have imported product short and long descriptions from a CSV file. However within the descriptions, where there are commas (,) this has been replaced by ,

So for example a sentence will read:
A good product, although cheap.

When it should read:
A good product, although cheap.

As there are hundreds of product descriptions effected, it will be a pain to manually fix this.

Can some body help me with a SQL command that will replace the , with a comma (,)

Thank you in advance

Link to comment
Share on other sites

Thank you for your reply. I'm getting the below error:


SQL query:

UPDATE ps_cms_lang SET content = replace( content, ‘ & comma;

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Link to comment
Share on other sites

Sorry, i'm a little bit slow when it come to SQL - i don't really understand what you mean.

Should we not aim the SQL at the ps_product_lang table as this is where the description is for the products within the description field.

Sorry about this - thank again for your help

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...