warning for subquery that references a table but not its columns
В списке pgsql-general по дате отправления:
| От | Seamus Abshere |
|---|---|
| Тема | warning for subquery that references a table but not its columns |
| Дата | |
| Msg-id | 1516309526.4088210.1240289384.0CDAD7E3@webmail.messagingengine.com обсуждение исходный текст |
| Ответы |
Re: warning for subquery that references a table but not its columns
|
| Список | pgsql-general |
I almost got bit by this today: => select email from subscribed where email not in (select email from tracks); email ------- (0 rows) => select email from subscribed where email not in (select tracks.email from tracks); ERROR: column tracks.email does not exist LINE 1: ... email from subscribed where email not in (select tracks.ema... (the "tracks" table doesn't have an "email" column, so the first query is just meaningless) Should there be a warning for the first query that you reference "tracks" in a subquery but don't use any columns from it? -- Seamus Abshere, SCEA https://www.faraday.io https://github.com/seamusabshere https://linkedin.com/in/seamusabshere
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера