upda = String.Format("update 车间存料 set 库存= {0}" total)如果字段库存是变量A,这句话要如何改
upda = String.Format("update 车间存料 set 库存= {0}", total)如果字段库存是变量A,这句话要怎么改
同上
------解决方案--------------------
upda = String.Format( "update 车间存料 set 库存= {0} ", A)
------解决方案--------------------
upda = String.Format( "update 车间存料 set " & A & "= {0} ", total)
------解决方案--------------------
upda = String.Format( "update 车间存料 set {0}= {1} ", A,total)
同上
------解决方案--------------------
upda = String.Format( "update 车间存料 set 库存= {0} ", A)
------解决方案--------------------
upda = String.Format( "update 车间存料 set " & A & "= {0} ", total)
------解决方案--------------------
upda = String.Format( "update 车间存料 set {0}= {1} ", A,total)