我USRDEF05 varchar(30)
在表中有一列SOP10106
声明为包含所有数字的列,当我尝试执行以下查询时,我收到转换错误。
Select
DETAIL.SUBTOTAL as Sub_Total,
CASE
when USERDEF.USRDEF05 <> ' ' THEN USERDEF.USRDEF05
ELSE 0
END as Winsys
FROM
SOP10100 DETAIL
Right JOIN
SOP10106 USERDEF ON USERDEF.soptype = DETAIL.soptype
WHERE
BACHNUMB ='WINSYS112012'
谁能给我一个想法如何解决这个错误?