美好的一天,
我需要将某些产品的价格提高8%,但我仍然会收到以下错误。
任何帮助将不胜感激
update Part_Sales_Price
set Sales_Price = ' ROUND (sales_price * 1.08,2) '
where Part_Number = '00001A'
Msg 8114, Level 16, State 5, Line 1 Error converting data type varchar to numeric.
答案 0 :(得分:1)
删除附近的引号,如下所示:
update Part_Sales_Price set Sales_Price = ROUND (sales_price * 1.08,2) where Part_Number = '00001A'