問(wèn)題現(xiàn)象:庫(kù)存系統(tǒng)使用了批次管理,有些存貨批次結(jié)存為0的在單據(jù)錄入時(shí)還顯示。為什么??

解決辦法:運(yùn)行語(yǔ)句:

update mainbatch set bisnull ='1'

FROM RdRecords JOIN mainbatch on rdrecords.autoid = mainbatch.rdid WHERE rdrecords.iquantity = rdrecords.isoutquantity