| От | Michael Fuhr |
|---|---|
| Тема | Re: error with mor than 1 sub-select |
| Дата | |
| Msg-id | 20060823020643.GA60275@winnie.fuhr.org обсуждение |
| Ответ на | error with mor than 1 sub-select (chrisj <chrisj.wood@sympatico.ca>) |
| Ответы |
Re: error with mor than 1 sub-select
|
| Список | pgsql-sql |
On Tue, Aug 22, 2006 at 06:47:51PM -0700, chrisj wrote: > The first query works fine, but when a second sub-query is added I get a > syntax error... > > psql protocal2 -U p2user << EOF1 > select * > from serv_res SR > where serv_key = 10 > and not exists > (select 1 > from reservation R > ) > -- and not exits Does the real query have "exits" instead of "exists"? I created some test tables and fixed that typo and then both queries worked. -- Michael Fuhr
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера