Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6087537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:52:53+00:00 2026-05-23T11:52:53+00:00

My mysql table is : Product (name,price,metaDescription) I want to write an SQL UPDATE

  • 0

My mysql table is : Product (name,price,metaDescription)

I want to write an SQL UPDATE to Set my metaDescription name+’ is only just for’+metaDescription

I tried this but it didn’t work

UPDATE 
  product 
SET 
  metaDescription=name+' is just for'+price;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:52:54+00:00Added an answer on May 23, 2026 at 11:52 am

    You should use the concat function:

    update product
    set metaDescription = concat(name, ' is just for ', price);
    

    MySQL should automatically convert price to a string type for you.

    MySQL is trying to convert your strings to numbers (and silently failing) when you use +:

    mysql> select 'this' + 'that';
    +-----------------+
    | 'this' + 'that' |
    +-----------------+
    |               0 |
    +-----------------+
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a mysql database with table 'product' containing columns 'product_id', 'name', 'price' table
I have there mysql table: **product (id,name)** 1 Samsung 2 Toshiba 3 Sony **attribute
I have a table in a MySQL table with a fieldname 'product', and want
how to make a good MySQL Database Table Structure from this XML-Code? <xml> <product>
I have a mysql table (table-A) that contains a list of unique product ids.
I have a MySql table called reviews which stores a lot of product reviews,
Use PHP and Mysql. Fields in my table (product) are id , full_price ,
I am using Mysql database. I have 3 table-: table Column tier_price customer_id,sku(Unique),price,website catalog_product
the mysql table below has two columns. how do i select only those rows
I have two MySQL tables (product and price history) that I would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.