Re: Help Please
From: Imtiaz Ahmed <imtiaz_at_qatar.net.qa>
Date: 1996/11/08
Message-ID: <01bbcd78$b7dffce0$512185c2_at_r2d2>#1/1
Date: 1996/11/08
Message-ID: <01bbcd78$b7dffce0$512185c2_at_r2d2>#1/1
Dear Zhangshi Yin
The Message you mention is the exception "too many rows".
To fetch more than one row you have to use a Cursor to hold your query
and you can use a Loop to repeatedly fetch from the cursor till the last
row
is retrieved.
eg.
Begin
Declare
Cursor X is select column1, column2 into :block1.field1, :block1.field2 from table1 where column1<100 ;Received on Fri Nov 08 1996 - 00:00:00 CET
---
---
begin open X ; loop fetch X into .... ........ ........ .......... ; Exit when X%NOTFOUND -----------------------------; -----------------------------; end loop ; end ; end ;