Is this a parser error ?

Поиск
Список
Период
Сортировка
От Shiby Thomas
Тема Is this a parser error ?
Дата
Msg-id 199802041757.MAA11021@cise.ufl.edu
обсуждение исходный текст
Ответ на Re: [HACKERS] Execution time.  (The Hermit Hacker <scrappy@hub.org>)
Список pgsql-hackers
Hi,

assoc=> explain insert into f2_temp select p.item, q.item, count(*) as cnt
from t1 p, t1 q where p.tid = q.tid and p.item < q.item group by p.item,
q.item;
ERROR:  The field being grouped by must appear in the target list

However, it works this way:
assoc=> explain select p.item, q.item, count(*) as cnt into table f2_temp from
t1 p, t1 q where p.tid = q.tid and p.item < q.item group by p.item, q.item;
NOTICE:  QUERY PLAN:

--shiby



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Re: [QUESTIONS] is Postgres an SQL-based database?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Hi