怎麼出現了一個從來沒見過的錯誤???
經實測的結果,發現如果回傳筆數超過262272以上,就會產生出這個錯誤訊息!!!
當然這並非是精準的數字,由圖二可以看到262476會報錯,改變日期,降低至262272,就可以查詢而不會報錯。
也有改變日期區間來測試,所以合理推斷應該是回傳筆數過多所造成。


後端執行的SQL語法如下:
select T='x', COUNT(PaperGUID) from QRA_Paper t1(nolock) where 1=1 And t1.SubCorpId = 'Cpn' and t1.Date_Paper >= '2015/01/01 00:00' and t1.Date_Paper < '2022/01/02 00:00'--x
select T='x', COUNT(PaperGUID) from QRA_Paper t1(nolock) where 1=1 And t1.SubCorpId = 'Cpn' and t1.Date_Paper >= '2015/01/01 00:00' and t1.Date_Paper < '2021/12/19 00:00'--x
select T='ok', COUNT(PaperGUID) from QRA_Paper t1(nolock) where 1=1 And t1.SubCorpId = 'Cpn' and t1.Date_Paper >= '2015/01/01 00:00' and t1.Date_Paper < '2021/12/18 00:00'
select T='x', COUNT(PaperGUID) from QRA_Paper t1(nolock) where 1=1 And t1.SubCorpId = 'Cpn' and t1.Date_Paper >= '2016/01/01 00:00' and t1.Date_Paper < '2021/12/19 00:00'--x
select T='ok', COUNT(PaperGUID) from QRA_Paper t1(nolock) where 1=1 And t1.SubCorpId = 'Cpn' and t1.Date_Paper >= '2016/02/01 00:00' and t1.Date_Paper < '2021/12/19 00:00'
👉 Delphi-Component-TProgressBar進度條範例
我們團隊使用Delphi已經三十年以上的經驗,如果有什麼問題,也可以在下方留言處與我們分享,感謝您!!
手刀試用=>蝦皮對帳王
手刀試用=>康捷雲端ERP
期待您的留言

Comments