Re: Using SELECT IN with prepared statement

Поиск
Список
Период
Сортировка
От Alexander Panzhin
Тема Re: Using SELECT IN with prepared statement
Дата
Msg-id 49195C3C.8040606@gmail.com
обсуждение исходный текст
Ответ на Using SELECT IN with prepared statement  (Tiago Alves <talves@tapestry.pt>)
Ответы Re: Using SELECT IN with prepared statement  (Ingmar Lötzsch <iloetzsch@asci-systemhaus.de>)
Список pgsql-jdbc
Hi,

You need to write: select * from users where userid = ANY ?

See
http://www.postgresql.org/docs/8.3/interactive/functions-comparisons.html

Tiago Alves wrote:
> Greetings!
>
> Sorry if you answer this before, I couldn't find it.
>
> I want to do something like:
>
> PreparedStatement ps = connection.prepareStatement("select * from
> users where userid in ?");
> ps.setSomething(anIntArray);
>
> Is this possible? How?
>
> Thanks.
> Tiago A.
>


Вложения

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Pgsql jdbc driver 8.3 Build 603: Commit deadlock
Следующее
От: Ingmar Lötzsch
Дата:
Сообщение: Re: Using SELECT IN with prepared statement