志翔科技有限公司後勤網
Would you like to react to this message? Create an account in a few clicks or log in to continue.
志翔科技有限公司後勤網

後勤等待處理訊息站,請各位成員努力消除待工區
 
首頁首頁  Latest imagesLatest images  會員註冊會員註冊  登入登入  

 

 一些待解的Select Error

向下 
發表人內容
flying
Admin
flying


文章數 : 207
注冊日期 : 2008-11-11

一些待解的Select Error Empty
發表主題: 一些待解的Select Error   一些待解的Select Error Empty周五 12月 05, 2008 2:28 pm

自訂 function 中直接執行下列子句會出現如圖的錯誤

delete from icmast where ttranno=:mtranno and icmast.trankind='ICTRANDETL' and icmast.trantype=:mtttype and seqno not in (select seqno from ictran where tranno=:mtranno and trantype=:mtttype);

一些待解的Select Error 3084279222_6d69837af1_o

後來才改用以下處理,先轉成字串再利用Execute Immediate 執行之

ls_delete="delete from icmast where ttranno='"+mtranno+"' and icmast.trankind='ICTRANDETL' and icmast.trantype='"+mtttype+"' and seqno not in (select seqno from ictran where tranno='"+mtranno+"' and trantype='"+mtttype+"');"
Execute Immediate :ls_delete Using sqlca;
if sqlca.sqlcode<>0 then
 messagebox("Notice","Delete old and surplus icmast failed.Tranno="+mtranno+" ,trantype="+mtttype+"~n~n"+sqlca.sqlerrtext)
end if
回頂端 向下
http://idon.666forum.net
 
一些待解的Select Error
回頂端 
1頁(共1頁)

這個論壇的權限:無法 在這個版面回復文章
志翔科技有限公司後勤網 :: 系統主題 :: 系統架構-
前往: