| От | Jackson, DeJuan |
|---|---|
| Тема | RE: [HACKERS] Outer Joins (and need CASE help) |
| Дата | |
| Msg-id | F10BB1FAF801D111829B0060971D839F5C5E1F@cpsmail обсуждение |
| Список | pgsql-hackers |
> -----Original Message----- > > I could be wrong (I don't have a copy of the standard), but I don't > > believe that the above syntax follows the standard. Let me know if > > I'm wrong, but my understanding of the syntax would be more like: > > SELECT * FROM t1 JOIN t2 ON (t1.i = t2.i); > > with the same result set as you listed (t2.i isn't suppressed). > > This would have a difference in approach from the above. > If I wanted > > to join on columns with different names I couldn't use your > syntax (as > > one example). > > The standard allows both syntaxes; USING is simpler to type, and ON is > more general, as you point out. > > In fact, the standard is annoyingly helpful in allowing > multiple ways to > write the same query. Makes the parsing and parse tree transformation > more complicated :( Sorry for the extra work load, but hey that's cool. > - Tom-DEJ
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера