BS3000J批量 反記賬 反審核 的方法

2021-05-24 07:50:08 字數 2192 閱讀 4702

1,檢索資料庫中 審核,記賬,未執行,未終止的 訂單(說明此單據僅僅是做到第三步,並沒有發貨!)

2,刪除  發貨單 中 發貨單.通知單號=通知單.通知單單號 的發貨單。

3,把1步檢索出的,要反記賬,反審核的單據列表,拷貝到  excel

4, sd2000073

sd2000075

sd2000078

sd2000079

sd2000083

sd2000086

sd2000087

sd2000090

sd2000091

sd2000092

5,然後再在兩邊加入執行語句

update psend set ys = '0' where djbh='

sd2000073

';update psend set ys = '0' where djbh='

sd2000075

';update psend set ys = '0' where djbh='

sd2000078

';update psend set ys = '0' where djbh='

sd2000079

';update psend set ys = '0' where djbh='

sd2000083

';update psend set ys = '0' where djbh='

sd2000086

';update psend set ys = '0' where djbh='

sd2000087

';update psend set ys = '0' where djbh='

sd2000090

';update psend set ys = '0' where djbh='

sd2000091

';update psend set ys = '0' where djbh='

sd2000092

';6,然後再拷貝到txt檔案中把  tab的「空格」  替換掉就成了

update psend set ys = '0' where djbh='sd2000073';

update psend set ys = '0' where djbh='sd2000075';

update psend set ys = '0' where djbh='sd2000078';

update psend set ys = '0' where djbh='sd2000079';

update psend set ys = '0' where djbh='sd2000083';

update psend set ys = '0' where djbh='sd2000086';

update psend set ys = '0' where djbh='sd2000087';

update psend set ys = '0' where djbh='sd2000090';

update psend set ys = '0' where djbh='sd2000091';

update psend set ys = '0' where djbh='sd2000092';

update psend set jz = '0' where djbh='sd2000073';

update psend set jz = '0' where djbh='sd2000075';

update psend set jz = '0' where djbh='sd2000078';

update psend set jz = '0' where djbh='sd2000079';

update psend set jz = '0' where djbh='sd2000083';

update psend set jz = '0' where djbh='sd2000086';

update psend set jz = '0' where djbh='sd2000087';

update psend set jz = '0' where djbh='sd2000090';

update psend set jz = '0' where djbh='sd2000091';

update psend set jz = '0' where djbh='sd2000092';

7.看!!!!批量的語句!超簡單!