库存表,字段:库存量,每箱个数,箱数,都是text类型。
我写得sql语句:
Data1.Database.Execute "update 库存表 set 箱数=trim(str(val(库存量)/val(每箱个数)))"
说是有语法错误,哪里错了?