| От | Vitalii Tymchyshyn |
|---|---|
| Тема | Re: Re-Reason of Slowness of Query |
| Дата | |
| Msg-id | 4D89CD86.4000008@gmail.com обсуждение исходный текст |
| Ответ на | Re: Re-Reason of Slowness of Query (Adarsh Sharma <adarsh.sharma@orkash.com>) |
| Список | pgsql-performance |
Vitalii Tymchyshyn wrote:No significance. You can put anything there. E.g. "*". Simply arbitrary constant. Exists checks if there were any rows, it does not matter which columns are there or what is in this columns.23.03.11 12:10, Adarsh Sharma написав(ла):I just want to retrieve that id 's from page_content which do not have any entry in clause2 table.Then
select distinct(p.crawled_page_id) from page_content p
where NOT EXISTS (select 1 from clause2 c where c.source_id = p.crawled_page_id);
is correct query.
I can't understand how select 1 from clause2 c where c.source_id = p.crawled_page_id works too, i get my output .
What is the significance of 1 here.
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера