I am trying to update a table product_desc and there are two columns name and description. I have a standard text for desc: 'Buy $name from us'.
Now, I can simple write update query but I want to use the $name from product_desc.name field.
Is this possible by writing just the query?
UPDATE product_desc
SET description = "Buy $name from blah blah"
WHERE $name = product_desc.name where id > 0;
something like this.