Jump to content

Make all characteristic values start with uppercase?


webbusiness23

Recommended Posts

Hello,

 

I need all the characteristic values inside the table ps_feature_value_lang start with uppercase ( i need only the first letter of the first word to be uppercase)

 

Example 1: 

before: wood

after: Wood

 

Example 2: 

before: plastic material

after: Plastic material

 

Anyone can help me with a sql query?

Thank you!

Link to comment
Share on other sites

17 hours ago, Rolige said:

 

Thank you for the suggestion, but i need only the first letter of the first word to be uppercase.

 

I've tried this so far (as suggested by a friend), but with no success (it says zero rows affected after i simulate query).

 

UPDATE `ps_feature_value_lang` SET `value`= CONCAT(UCASE(SUBSTRING(`value`, 1, 1)), LOWER(SUBSTRING(`value`, 2)))

Am i missing something?

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...