å‡çñ”åˆ?.2.3åŽï¼Œæ–°å‘OA生æˆä¸äº†æ‰‹æœºå›„¡‰‡ã€?/span>
排除æ–ÒŽ(gu¨©)³•åQ?/span>
1ã€åœ¨å¸å¥—库执行下列è¯å?/p>
Select * from sdpo020b
2ã€æŸ¥çœ‹ä¸‹ å—段 “po020b26â€å—ŒD늚„排列™åºåºåQŒå¦‚æžœä¸æ˜¯åœ¨ po020b25å’Œpo020b27之间åQ?br/>
则说明有问题åQŒéœ€æ‰§è¡Œè„šæœ¬åQšâ€œsdpo020b.txtâ€?æ–‡äšgè§é™„ä»?
3ã€è‹¥å®¢æˆ·å·²ç»å‘了OAåQŒä¸æƒ³é‡æ–°å‘èµøP¼Œåˆ™éœ€åœ¨å¸å¥—库执行下列脚本åQˆè¿™ä¸ªè§†æ•°æ®é‡å¤§ž®ï¼Œæ‰§è¡Œæ—‰™—´ç›¸åº”åŠ é•¿åQ‰ï¼š(x¨¬)
Declare @po00402 varchar(40),
@po00403 varchar(40),
@po00418 varchar(40)
Declare sdpo004_cur Cursor For
Select po00402,po00403,po00418 From sdpo004_AllRecord Where Not Exists(
Select 1 From sdpo100 Where po10011=po00418) And Not Exists(
Select 1 From sdcf011 Where cf01105=po00418) And Not Exists(
Select 1 From sdcf027 Where cf02707=po00418) order by po00402
Open sdpo004_cur
Fetch Next From sdpo004_cur Into @po00402,@po00403,@po00418
While @@Fetch_Status<>-1
Begin
Exec InsertToImage @po00402, @po00403, @po00418
Fetch Next From sdpo004_cur Into @po00402,@po00403,@po00418
End
Close sdpo004_cur
Deallocate sdpo004_cur