| От | Listmail |
|---|---|
| Тема | Re: SQL WHERE: many sql or large IN() |
| Дата | |
| Msg-id | op.tqdlu9xszcizji@apollo13 обсуждение исходный текст |
| Ответ на | Re: SQL WHERE: many sql or large IN() (tom <tom@tacocat.net>) |
| Список | pgsql-general |
> I've never seen this before.
> Is this PG specific or generic SQL that I've never been exposed to?
http://www.postgresql.org/docs/8.2/interactive/sql-values.html
VALUES conforms to the SQL standard, except that LIMIT and OFFSET are
PostgreSQL extensions.
It doesn't seem like much at first glance, but it's really useful. It's
your kleenex temp table. It can select the rows you want from a table in
the order you want, update a table, replacing several values with several
others (as a before=>after correspondence table) and many other things. It
is more powerful than IN() because you can use columns of the VALUES() in
any part of your query, updating, ordering, etc.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера