Re: Callable Statements

Поиск
Список
Период
Сортировка
От floess@mindspring.com
Тема Re: Callable Statements
Дата
Msg-id 1513788.1049891734091.JavaMail.nobody@wamui05.slb.atl.earthlink.net
обсуждение исходный текст
Ответ на Callable Statements  (Mark French <frenchmb@tpg.com.au>)
Ответы Re: Callable Statements  (Nic Ferrier <nferrier@tapsellferrier.co.uk>)
Список pgsql-jdbc
Mark:

To answer your question, you can't use CallableStatement where you return a row, rows or RECORD type.

For a function returning multiple rows, a single row, or RECORD you would have to use a PreparedStatement.  The string
passedto your prepared statement would resemble "select * from function" 

I don't have an example on hand...but I may be able to get one for you later.

Scot

-------Original Message-------
From: Mark French <frenchmb@tpg.com.au>
Sent: 04/09/03 04:05 PM
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] Callable Statements

>
> Hi,

I'm new to postgres JDBC and was wondering if it supported callable
statements at all?  The documentation doesn't have any examples and
would like to know it was possible to use them to call functions that
return multiple rows?  An example would be greatly appreciated.

Cheers

Mark


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>


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

Предыдущее
От: Felipe Schnack
Дата:
Сообщение: Re: Performance of batches with Statements and
Следующее
От: Nic Ferrier
Дата:
Сообщение: Re: Callable Statements