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;
You should use the
concatfunction:MySQL should automatically convert
priceto a string type for you.MySQL is trying to convert your strings to numbers (and silently failing) when you use
+: