Re: Callable Statements
От | Nic Ferrier |
---|---|
Тема | Re: Callable Statements |
Дата | |
Msg-id | 87ptnvlu0d.fsf@pooh-sticks-bridge.tapsellferrier.co.uk обсуждение исходный текст |
Ответ на | Re: Callable Statements (floess@mindspring.com) |
Список | pgsql-jdbc |
floess@mindspring.com writes: > 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 passed to 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. To clarify, PostgreSQL JDBC has always been able to call functions that return ref cursor types as ResultSet's. If you look through the archives of this list you'll find plenty of examples (searching for my name will provide at least one example). CallableStatement support for such procs has recently been added to the CVS version of PostgreSQL JDBC. Nic
В списке pgsql-jdbc по дате отправления: