Re: select

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: select
Дата
Msg-id 17213.1047308115@sss.pgh.pa.us
обсуждение исходный текст
Ответ на select  ("cristi" <cristi@dmhi.ct.ro>)
Список pgsql-novice
"cristi" <cristi@dmhi.ct.ro> writes:
> I have an integer vector: 101,105,120... and a table with an integer field
> named "cod" .
> I want to select the records who contains in field named "cod" one of the
> vector values.

SELECT * FROM table_name WHERE cod IN (101,105,120...);

            regards, tom lane

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

Предыдущее
От: bryan@flyingiranch.com
Дата:
Сообщение: Value of sequence last inserted
Следующее
От: "Delao, Darryl W"
Дата:
Сообщение: General Performance questions