| От | Michael Fuhr |
|---|---|
| Тема | Re: question abut "order by" null fields |
| Дата | |
| Msg-id | 20050701135952.GA14301@winnie.fuhr.org обсуждение |
| Ответ на | question abut "order by" null fields (Alessandro Vincelli <av@alessandro.vincelli.name>) |
| Список | pgsql-general |
On Fri, Jul 01, 2005 at 11:21:06AM +0200, Alessandro Vincelli wrote: > > SELECT column1, column2 FROM table1 LEFT JOIN table2 USING (id) > ORDER BY column1, column2 > > In the rows where column1 is not null postgres perform ORDER BY column1, > column2 > > Problem: > In the rows where Column1 is null, postgres don't perform ORDER BY on > the column2 Please post a complete example: the SQL statements to create, populate, and query the tables, as well as the results you expect to see and the results you actually get. What version of PostgreSQL are you running, and on what platform? -- Michael Fuhr http://www.fuhr.org/~mfuhr/
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера