declare @tdzsl float --提单物料数量
DECLARE @ckbz VARCHAR(20) --出库标志
DECLARE @cksl float --出库数量
DECLARE @tdls VARCHAR(40) --提单流水
set @strSql = 'UPDATE '+@suf+'.XSTDMX SET XSTDMX_CKSL = '+@cksl +', XSTDMX_CKBZ = '+@ckbz+'
WHERE XSTDMX_WLBH = '''+@wlbh+''' and XSTDMX_TDLS = '+@tdls
exec (@strSql)
我要是把@cksl 写成0了也能 ,我怎么也看不出来这句到底哪错了,在线急等大家帮忙解决
------解决思路----------------------
set @strSql = 'UPDATE '+@suf+'.XSTDMX SET XSTDMX_CKSL = '+CAST(@cksl AS VARCHAR) +', XSTDMX_CKBZ = '+@ckbz+'
WHERE XSTDMX_WLBH = '''+@wlbh+''' and XSTDMX_TDLS = '+@tdls
尝试一下