Please check the query below.
update product set product_price = 5 where product_price = 0
ERROR: syntax error at or near "set" at character 45
SQL error:
ERROR: syntax error at or near "set" at character 45
In statement:
SELECT COUNT(*) AS total FROM (update product set product_price = 5 where product_price = 0) AS sub
I don't know why I am getting this error. Please help me.