我的查詢來更新整個表看起來是這樣的:錯誤:子查詢返回多個值
update works set nIndex = cast(replace(replace((select strIndex
from works), char(10), ''), char(10), '') as int)
然而,當我運行它,我得到這個錯誤:
"Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression."
。