我想对我的值进行四舍五入并减去-1来进行简单的更新:
UPDATE
catalog_product_entity_decimal
SET
catalog_product_entity_decimal.value= round(catalog_product_entity_decimal.value,-1)-1
WHERE
catalog_product_entity_decimal.attribute_id="76";
错误是:
1064-您的SQL语法有错误;检查手册 对应于您的MySQL服务器版本以使用正确的语法 ')-1在
catalog_product_entity_decimal
位置附近 第1行的catalog_product_entity_decimal.a'
我做错了什么?