速達5000出現計算成本資料溢位的問題

2022-05-08 15:39:15 字數 576 閱讀 1313

算成本提示某貨品成本溢位處理方法,該問題是由於貨品成本異常,成本上億或者負億造成的;

1.首先通過語句:select * into tmp_goods from l_goods where abs(aprice)>=100000,把成本**超過10萬的貨品資料取出;

2.更新貨品資料的成本**:

update g set aprice =0

from l_goods g where exists(select * from tmp_goods tg where tg.goodsid=g.goodsid);

3.更新底稿表的成本**:

update g set price =0, amount=0, eprice=0, eamount=0, difamount=0

from aa_billflow g where exists(select * from tmp_goods tg where tg.goodsid=g.goodsid)

4.更新底稿表的重算狀態

update aa_billflow set status=0;

5.然後重算成本,對負庫存出庫、有異常的成本做調價處理;

PLS 00103 出現符號

oracle儲存過程 create or replace procedure update people in name in nvarchar2 20 in status in nvarchar2 as begin update people set status in status where ...

vs2010出現錯誤視窗

平台 wen7 32位 vs2010 問題 新建或開啟專案是出現下面提示視窗 本人解決辦法 網上有解決辦法,但是幾乎都是英文版的,看了還需要什麼解除安裝什麼的。但是,我只在開始的 搜尋檔案和程式 框中 就是 關機 左邊那個輸入視窗 輸入如下內容及解決 reg delete hkey local ma...

整數中1出現的次數

針對牛客網試題作個記錄 問題 整數中1出現的次數 從1到n整數中1出現的次數 求出1 13的整數中1出現的次數,並算出100 1300的整數中1出現的次數?為此他特別數了一下1 13中包含1的數字有1 10 11 12 13因此共出現6次,但是對於後面問題他就沒轍了。acmer希望你們幫幫他,並把問...