Re: fetchsize dynamically changeable?

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: fetchsize dynamically changeable?
Дата
Msg-id 41075F06.9080508@opencloud.com
обсуждение исходный текст
Ответ на fetchsize dynamically changeable?  (Guido Fiala <guido.fiala@dka-gmbh.de>)
Список pgsql-jdbc
Guido Fiala wrote:
> Given all the other requirements for cursors are met, is it possible to change
> the fetchsize on the fly?
>
> e.g.
> conn.createStatement(...);
> st.setFetchsize(1);
> rs=st.executeQuery(...);//we got the first record
> st.setFetchsize(10);
> rs.next(); //now we got records nr. 2-11 in memory and sit at nr. 2

That should work.

-O

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Guido Fiala
Дата:
Сообщение: fetchsize dynamically changeable?
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: fetchsize dynamically changeable?