6
我有一個表t與一列int我有一些行。 我想循環它。當然,我可以爲此寫一個選擇查詢。但我學習程序,並寫了一個程序,如何在火鳥中暫停工作?
set term ^;
create procedure qt returns(a int) as
begin
for select i from t into :a do
suspend;
end^
set term ;^
但是,當我把這個過程,我只得到一個行回來,
execute procedure qt;
我看,
A
============
1
我想我不明白suspend
。
非常感謝。這是在Firebird文檔中寫的地方嗎?因爲我從來沒有讀過這個。 – ericj
@ericj我需要看看這個;我現在沒有時間這樣做。 –
@ericj我已經使用Interbase 6語言參考中的信息更新了我的答案。 –