Re: [HACKERS] sql2008 diff sql2003

2008-09-08 Thread Andrew Gierth
> "Alvaro" == Alvaro Herrera <[EMAIL PROTECTED]> writes: >> so it's like this: >> >> select * from foo order by bar offset 5 rows fetch first 10 rows only; Alvaro> Oh, I see -- it's just a cumbersome way to have our LIMIT Alvaro> clause. What's the "ONLY" for? It seems to be just a ma

Re: [HACKERS] sql2008 diff sql2003

2008-09-08 Thread Alvaro Herrera
Andrew Gierth wrote: > Alvaro> This means we have to support stuff like > > Alvaro> declare foo cursor for select * from lists; > Alvaro> select * from (fetch first from foo) as bar; > > No, that's wrong. [...] > so it's like this: > > select * from foo order by bar offset 5 rows fetch fir

Re: [HACKERS] sql2008 diff sql2003

2008-09-08 Thread Andrew Gierth
> "Alvaro" == Alvaro Herrera <[EMAIL PROTECTED]> writes: Alvaro> Wow, this is really horrid: Alvaro> # F856 through F859: FETCH FIRST clause in subqueries, Alvaro> views, and query expressions. The SQL:2008 syntax for Alvaro> restricting the rows of a result set is FETCH FIRST, rather

Re: [HACKERS] sql2008 diff sql2003

2008-09-08 Thread Alvaro Herrera
Pavel Stehule escribió: > Hello > > I found one usefull article > http://iablog.sybase.com/paulley/2008/07/sql2008-now-an-approved-iso-international-standard/ Wow, this is really horrid: # F856 through F859: FETCH FIRST clause in subqueries, views, and query expressions. The SQL

[HACKERS] sql2008 diff sql2003

2008-09-08 Thread Pavel Stehule
Hello I found one usefull article http://iablog.sybase.com/paulley/2008/07/sql2008-now-an-approved-iso-international-standard/ Regards Pavel Stehule -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgs