check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHE

报错

check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE......

mapper

 
        UPDATE
          xq_product
        SET
          xq_product_name = #{xqProduct.xqProductName},
          xq_product_standard_price = #{xqProduct.xqProductStandardPrice},    ---------------------------1
        WHERE xq_product_id = #{xqProduct.xqProductId}
    

问题

多复制了个逗号。
将标注1行结尾的逗号去掉即可。

你可能感兴趣的:(MySql)