7.0.3: order by func in union

Поиск
Список
Период
Сортировка
От Mikheev, Vadim
Тема 7.0.3: order by func in union
Дата
Msg-id 8F4C99C66D04D4118F580090272A7A234D3215@sectorbase1.sectorbase.com
обсуждение исходный текст
Список pgsql-hackers
PostgreSQL 7.0.3 on sparc-sun-solaris2.6, compiled by gcc 2.95.2

drop table tryam;
create table tryam (x text);
insert into tryam values ('22');
insert into tryam values ('1');

test=# select x from tryam union select x from tryam;x  
----221
(2 rows)

test=# select x from tryam union select x from tryam order by x;x  
----122
(2 rows)

test=# select x from tryam union select x from tryam order by length(x);x  
----122122
(4 rows)

???

Vadim


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Inheritance is a security loophole!
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Inheritance is a security loophole!