Re: [SQL] using ordinal_position

2012-06-11 Thread Igor Neyman
> -Original Message- > From: John Fabiani [mailto:[email protected]] > Sent: Monday, June 11, 2012 11:11 AM > To: Igor Neyman > Cc: [email protected] > Subject: Re: using ordinal_position > > On 06/11/2012 06:53 AM, Igor Neyman wrote: > > > >> -Original Message- > >> Fr

Re: [SQL] using ordinal_position

2012-06-11 Thread John Fabiani
On 06/11/2012 06:53 AM, Igor Neyman wrote: -Original Message- From: John Fabiani [mailto:[email protected]] Sent: Thursday, June 07, 2012 7:18 PM To: [email protected] Subject: using ordinal_position I'm attempting to retrieve data using a select statement without knowing the

Re: [SQL] using ordinal_position

2012-06-11 Thread Igor Neyman
> -Original Message- > From: John Fabiani [mailto:[email protected]] > Sent: Thursday, June 07, 2012 7:18 PM > To: [email protected] > Subject: using ordinal_position > > I'm attempting to retrieve data using a select statement without > knowing the column names. I know the ord

Re: [SQL] using ordinal_position

2012-06-07 Thread David Johnston
> -Original Message- > From: [email protected] [mailto:pgsql-sql- > [email protected]] On Behalf Of John Fabiani > Sent: Thursday, June 07, 2012 7:18 PM > To: [email protected] > Subject: [SQL] using ordinal_position > > I'm attemp

[SQL] using ordinal_position

2012-06-07 Thread John Fabiani
I'm attempting to retrieve data using a select statement without knowing the column names. I know the ordinal position but not the name of the column (happens to be a date::text and I have 13 fields). Below provides the name of the column in position 3: select column_name from (select column_n