Bambero <bambero(at)tlen(dot)pl> writes:
> I don't know what fields are in the table so:
>
> select fieldname as 1, fieldname2 as 2
>
> is useless.
slo=> create table x (foo text,bar text,baz text);
CREATE TABLE
slo=> select * from (select * from x) as x ("1","2","3");
1 | 2 | 3
---+---+---
(0 rows)
--
greg