記錄infor xa erp工作用sql
1、綠屏shipment操作不正常退出,造成shipment狀態異常,無法繼續任何操作;解鎖sql
--綠屏異常退出,shipment異常
update 環境庫.mbadres0 set adiist = '50' where adiist = '99' and adhfcd = '50';
update 環境庫.mbadres0 set adiist = '00' where adiist = '99' and adhfcd = '20';
update 環境庫.mbkjrep set kjabtm = 121212 where kjabtm = 999999;
update 環境庫.mbdhrep set dhabtm = 121212 where dhabtm = 999999;
10、無工藝序最早訂單、forcast明細
--建議工藝完成日期、co交貨承若日期、co號碼、co成品、成品下階、專案說明、專案長描述、專案長規格、專案型別、專案類別、生產部門
select distinct
case
when itemf.itcls = 'a001' then to_char(to_date(char(co.codate+19000000),'yyyymmdd') - 35 days,'yyyymmdd')-19000000
when itemf.itcls like 'a00%' and itemf.itcls != 'a001' then to_char(to_date(char(co.codate+19000000),'yyyymmdd') - 42 days,'yyyymmdd')-19000000
when itemf.itcls like 'j%' then to_char(to_date(char(co.codate+19000000),'yyyymmdd') - 56 days,'yyyymmdd')-19000000
else to_char(to_date(char(co.codate+19000000),'yyyymmdd') - 49 days,'yyyymmdd')-19000000
end advicedate,
co.codate,co.conum,co.fitem,
lvbom.pitm,itemf.itdsc, itemz.ldesp, itemz.sdesp,itemf.ittyp,itemf.itcls,itemf.dptno
from (select concat('co',colinere.adcvnb) conum,colinere.adbidt codate,colinere.adaitx fitem
from amflibf.mbadrep colinere
where colinere.adhfcd != '50' and colinere.adagnv > 0
and colinere.adbidt = (select min(mincolinere.adbidt)
from amflibf.mbadrep mincolinere
where mincolinere.adaitx = colinere.adaitx
and mincolinere.adhfcd != '50' and mincolinere.adagnv > 0
)union
select 'forecast' conum,forecast.rqdud codate,forecast.rqcom fitem
from amflibf.reqmts forecast
where forecast.rqsor = '6'
and forecast.rqdud = (select min(minforecast.rqdud)
from amflibf.reqmts minforecast
where minforecast.rqcom = forecast.rqcom
and minforecast.rqsor = '6'
)) co
join mwlibf.bomlvlpf lvbom on lvbom.fitm = co.fitem
join mwlibf.zitmext itemz on itemz.itnbr = lvbom.pitm
join amflibf.itmrva itemf on itemf.itnbr = lvbom.pitm
and itemf.cfst != 'stop'
and itemf.ittyp in ('1','2')
where not exists (select 1 from amflibf.rtgopr routopr
where routopr.rtid = lvbom.pitm
and routopr.wkctr != 'qc'
) order by co.codate,co.fitem,lvbom.pitm
mysql常用運維 (MYSQL常用運維指令)
1 mysql執行狀態 service mysqld status service mysqld start service mysqld stop 2 檢視sql程序,清理sql程序 show full processlist kill 2920578 3 賬號建立 資料庫授權 4 密碼修改 my...
運維常用shell
列出你最常用的10條shell history awk end sort rn head history awk end sort rn head grep v bash history awk end head 網路連線數目 netstat an grep e tcp cut c 68 sort ...
日常運維常用
1 修改linux系統日誌記錄時間 vi etc rsyslog.conf actionfiledefaulttemplate rsyslog fileformat 2 windows7 配置snmp 1 解除安裝程式 開啟或關閉windows功能 開啟snmp服務 2 計算機 管理 服務 找到sn...