无法将 char 值转换为 money.该 char 值的语法有误.
表t_cdxmain是由表CdxMain复制过来的,两个表完全相同。下面这条语句UPDATECdxMainSEThzfs='"+hzfs+"',hzdw='"+hzdw+...
表t_cdxmain是由表CdxMain复制过来的,两个表完全相同。下面这条语句
UPDATE CdxMain
SET hzfs = '"+hzfs+"',hzdw = '"+hzdw+"',dwbm = '"+dwbm+"',yhsfzh = '"+yhsfzh+"',yhxm = '"+yhxm+"',tzdh = '"+tzdh+"',jkhtbh = '"+jkhtbh+"',BZHTBH = '"+BZHTBH+"',zje = '"+zje+"',sfje = '"+sfje+"',jkje = '"+jkje+"',fdbl = '"=fdbl+"',qx = '"+qx+"',qs = '"+qs+"',dqrq = '"+dqrq+"',dyrq = '"+dyrq+"',bz = '"+bz+"',state = '"+state+"',gjll = '"+gjll+"',jxs = '"+jxs+"',startdate = '"+startdate+"',monthll = '"+monthll+"',lastll = '"+lastll+"',逾期利率 = '"+逾期利率+"',item='"+item+"',maker='"+maker+"',BZHTBH2 = '"+BZHTBH2+"',bzjbl = '"+bzjbl+"',签订日期='"+签订日期+"',支款方式='"+支款方式+"',frequency='"+frequency+"', 利率变更类别='"+利率变更类别+"'
WHERE lsh = '"+lsh+"' and (state =-1 or state =0)
可以成功执行,但是如果把UPDATE后面的表名换成t_cdxmain就会出错,错误提示为“无法将 char 值转换为 money.该 char 值的语法有误.”
求高人指点这是怎么回事? 展开
UPDATE CdxMain
SET hzfs = '"+hzfs+"',hzdw = '"+hzdw+"',dwbm = '"+dwbm+"',yhsfzh = '"+yhsfzh+"',yhxm = '"+yhxm+"',tzdh = '"+tzdh+"',jkhtbh = '"+jkhtbh+"',BZHTBH = '"+BZHTBH+"',zje = '"+zje+"',sfje = '"+sfje+"',jkje = '"+jkje+"',fdbl = '"=fdbl+"',qx = '"+qx+"',qs = '"+qs+"',dqrq = '"+dqrq+"',dyrq = '"+dyrq+"',bz = '"+bz+"',state = '"+state+"',gjll = '"+gjll+"',jxs = '"+jxs+"',startdate = '"+startdate+"',monthll = '"+monthll+"',lastll = '"+lastll+"',逾期利率 = '"+逾期利率+"',item='"+item+"',maker='"+maker+"',BZHTBH2 = '"+BZHTBH2+"',bzjbl = '"+bzjbl+"',签订日期='"+签订日期+"',支款方式='"+支款方式+"',frequency='"+frequency+"', 利率变更类别='"+利率变更类别+"'
WHERE lsh = '"+lsh+"' and (state =-1 or state =0)
可以成功执行,但是如果把UPDATE后面的表名换成t_cdxmain就会出错,错误提示为“无法将 char 值转换为 money.该 char 值的语法有误.”
求高人指点这是怎么回事? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询