下方的代碼單獨執行,結果是正確的為1,但在存盤程序中執行后結果就錯了值為2,請問大神是什么原因該如何解決
select count(*)
into sre_count
from view_stacking_ctrl_get a
where 1 = 1
and a.features = features
/*and a.file_id like '%'||file_id||'%'*/
and a.spec = spec
and a.jzformula = jzformula
/*and a.gpformula like '%'||gpformula||'%'*/
and a.silu = silu
and a.value_03 = heicode
/* and a.gphei like '%'||gphei||'%'*/
and cap >= a.capdown
and cap <= a.capup
and a.voldown <= vol
and a.volup >= vol;
uj5u.com熱心網友回復:
用存盤程序 呼叫后,回傳值是2? 直接運行是1 這個意思嗎?uj5u.com熱心網友回復:
就是Count(*)的結果,兩次執行之后的結果不一樣,在存盤程序中甚至查詢到不滿足條件的資料轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/70767.html
標籤:開發
