Re: SQL query runs fine on one platform (FreeBSD), but hangs on another (Windows)
От | David Noel |
---|---|
Тема | Re: SQL query runs fine on one platform (FreeBSD), but hangs on another (Windows) |
Дата | |
Msg-id | CAHAXwYCT8EGCz9f1Lsg_Lzn-f2yA3QupUOMAY3f3ogQwwMZz9Q@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: SQL query runs fine on one platform (FreeBSD), but hangs on another (Windows) (Vik Fearing <vik.fearing@dalibo.com>) |
Ответы |
Re: SQL query runs fine on one platform (FreeBSD), but
hangs on another (Windows)
|
Список | pgsql-general |
> select p.*, s.NoOfSentences > from page p, > lateral (select count(*) as NoOfSentences > from sentence s > where s."PageURL" = p."URL") s > where "Classification" like case ... end > order by "PublishDate" desc > limit 100; Great. Thanks so much! Could I make it even simpler and drop the case entirely? select p.*, s.NoOfSentences from page p, lateral (select count(*) as NoOfSentences from sentence s where s."PageURL" = p."URL") s where "Classification" like 'health' order by "PublishDate" desc limit 100; I'm not sure what "case WHEN 'health'<>'' THEN 'health' ELSE '%' end" does. I follow everything just fine until I get to the 'health'<>'' condition. What does the single quotation mark mean? I can't seem to find it in the documentation. -David
В списке pgsql-general по дате отправления: