Re: default value returned from sql stmt
От | Richard Huxton |
---|---|
Тема | Re: default value returned from sql stmt |
Дата | |
Msg-id | 4F756D31.2050009@archonet.com обсуждение исходный текст |
Ответ на | Re: default value returned from sql stmt (Pavel Stehule <pavel.stehule@gmail.com>) |
Ответы |
Re: default value returned from sql stmt
Re: default value returned from sql stmt |
Список | pgsql-general |
On 30/03/12 08:46, Pavel Stehule wrote: > 2012/3/30 Richard Huxton<dev@archonet.com>: >> On 29/03/12 23:28, Pavel Stehule wrote: >>> >>> select anum from t1 where anum = 4 >>> union all select 100 limit 1; >> >> >> I'm not sure the ordering here is guaranteed by the standard though, is it? >> You could end up with the 4 being discarded. > > A order is random for only "UNION", "UNION ALL" should to respect > order. But I didn't check it in standard. Let's put it this way - a quick bit of googling can't find anything that says the order *is* guaranteed, and (almost?) no other operations do so by default. -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления: