Re: Function calls via JDBC

Поиск
Список
Период
Сортировка
От Barry Lind
Тема Re: Function calls via JDBC
Дата
Msg-id 3BCC9840.4030300@xythos.com
обсуждение исходный текст
Ответ на Function calls via JDBC  (Oleg Lebedev <olebedev@waterford.org>)
Список pgsql-jdbc
functions in PostgreSQL are called via a select statement.

Issue "select your_custom_function()" in a Statement or
PreparedStatement.  Then get the result like any other select statement
via the ResultSet.

thanks,
--Barry

Oleg Lebedev wrote:

> Hi,
> I created a PL/pgSQL function, but can not call it from my Java program.
>
> I tried using CallableStatement, but it gave me an exception:
> Callable Statements are not supported at this time.
> So, how should I execute a stored procedure via JDBC?
> Thanks,
>
> Oleg
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
>



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

Предыдущее
От: Oleg Lebedev
Дата:
Сообщение: Function calls via JDBC
Следующее
От: Jakub Labath
Дата:
Сообщение: Re: JDBC 2 ResultSet and cursors