Re: proposal for 8.3: Simultaneous assignment for PL/pgSQL
От | Tom Lane |
---|---|
Тема | Re: proposal for 8.3: Simultaneous assignment for PL/pgSQL |
Дата | |
Msg-id | 12679.1155067509@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: proposal for 8.3: Simultaneous assignment for PL/pgSQL (Andrew Dunstan <andrew@dunslane.net>) |
Ответы |
Re: proposal for 8.3: Simultaneous assignment for PL/pgSQL
|
Список | pgsql-hackers |
Andrew Dunstan <andrew@dunslane.net> writes: > Pavel Stehule wrote: >> I looked into SQL2003, and SQL2003 knows it (SQL/PSM): >> >> <assignment statement> ::= >> <singleton variable assignment> >> | <multiple variable assignment> >> <multiple variable assignment> ::= >> SET <assignment target list> <equals operator> <assigned row> >> <assignment target list> ::= >> <left paren> <assignment target> [ { <comma> <assignment target> >> }... ] <right paren> >> <singleton variable assignment> ::= >> SET <assignment target> <equals operator> <assignment source> > The parentheses are apparently required for multiple variables, so in > our case it might look like this: > (a,b,c) := foo(bar); More to the point, a SET keyword is required too by that standard. I concur with the other comment that plpgql is intended to mimic Oracle PL/SQL, not SQL/PSM. If we try to follow two different leads we are likely to find ourselves with a mess. regards, tom lane
В списке pgsql-hackers по дате отправления: