MYSQL更新包括ROUND失败#1064

时间:2018-11-23 17:54:36

标签: mysql rounding mysql-error-1064

我想对我的值进行四舍五入并减去-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'

我做错了什么?

0 个答案:

没有答案