Re: subquery with more than one column
| От | Raimon Fernandez |
|---|---|
| Тема | Re: subquery with more than one column |
| Дата | |
| Msg-id | 989D18C1-AF52-4AFE-8581-2B988B457DA4@montx.com обсуждение исходный текст |
| Ответ на | Re: subquery with more than one column (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: subquery with more than one column
|
| Список | pgsql-novice |
but I want as a separate columns, like a normal SELECT ... this is what I get: +---------------+ | row | +---------------+ | (1,"ref rai") | | (1,ref) | +---------------+ thanks, raimon On 05/07/2007, at 21:30, Tom Lane wrote: > Raimon Fernandez <coder@montx.com> writes: >> It's not possible to return in a subquery more than one column ? > > Try it like this: > > SELECT id_intern, (SELECT ROW(referencia, descripcio) FROM > articles WHERE... > > regards, tom lane > > ---------------------------(end of > broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org >
В списке pgsql-novice по дате отправления: