K3 erp應收應付結賬時提示“單據重複”的處理

/*
應收應付結賬時提示“單據重複”的處理。
*/

--備份數據
--	select * into t_rp_contactbal_bak  from t_rp_contactbal where fyear=2010 and fperiod>9 and frp=0
--	frp  1-應收   0-應付  
delete from t_rp_contactbal where fyear=2010 and fperiod>9 and frp=0

delete from t_rp_contactbal where fyear=2010 and fperiod>9 and frp=0                                                                                                                                                                                                                                                  

--	INSERT INTO t_rp_contactbal SELECT * FROM t_rp_contactbal_bak

--drop table t_rp_contactbal_bak

 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章