IN clause with PreparedStatement

Поиск
Список
Период
Сортировка
От Ingmar Lötzsch
Тема IN clause with PreparedStatement
Дата
Msg-id 469E34E6.3010002@asci-systemhaus.de
обсуждение исходный текст
Ответы Re: IN clause with PreparedStatement  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc
Hello,

I want to submit a query like

SELECT *
FROM table1
WHERE id IN (1, 2, 3);

whereas the list 1, 2, 3 must be created dynamically. The goal is to
avoid n queries for single objects instead of one query. I can
concatenate the statement and use Statement. But I can't figure out, how
to use PreperedStatement. Can you help me?

Thank you, Ingmar


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

Предыдущее
От: "Kalle Hallivuori"
Дата:
Сообщение: Re: Stream Copy for 8.1 - 8.3dev
Следующее
От: Tonio Caputo
Дата:
Сообщение: Re: Index scan with like expressions