Re: [GENERAL] rotate psql output

2010-10-10 Thread Ben Carbery
For the record, I did find a way to do with another application.. mathematica makes it fairly trivial: Say a query such as: data = SQLSelect[someconnection,"sometable"] Printing it: TableForm[data] Then simply: Transpose[TableForm[data]]

Re: [GENERAL] rotate psql output

2010-10-04 Thread Tommy Gildseth
On 09/30/2010 02:11 PM, Matthew Seaman wrote: On 30/09/2010 12:31, Vincenzo Romano wrote: 2010/9/30 Ben Carbery: Strange if this can't be done, I would have thought it a common request! Just curiosity. Is there any other DB capable of such a thing? MySQL does this using an alternate end-of

Re: [GENERAL] rotate psql output

2010-09-30 Thread Matthew Seaman
On 30/09/2010 12:31, Vincenzo Romano wrote: > 2010/9/30 Ben Carbery : >> Strange if this can't be done, I would have thought it a common request! > > Just curiosity. Is there any other DB capable of such a thing? > MySQL does this using an alternate end-of-statement character: ';' or '\g' gives

Re: [GENERAL] rotate psql output

2010-09-30 Thread Vincenzo Romano
2010/9/30 Ben Carbery : > On Thu, Sep 30, 2010 at 9:36 PM, Vincenzo Romano > wrote: >> >> We also have the fantastic crosstab in tablefunc module (see chapter >> F.36.1.4 for v9.0.0) >> > ..but these seem to be more pivot table functions that alter the data, > rather than displaying it differently

Re: [GENERAL] rotate psql output

2010-09-30 Thread Ben Carbery
On Thu, Sep 30, 2010 at 9:36 PM, Vincenzo Romano < vincenzo.rom...@notorand.it> wrote: > 2010/9/30 Raymond O'Donnell : > > On 30/09/2010 12:17, Ben Carbery wrote: > > Googling on "sql swap rows columns" found this: > > > > > http://stackoverflow.com/questions/584232/t-sql-how-to-swap-rows-and-colu

Re: [GENERAL] rotate psql output

2010-09-30 Thread Vincenzo Romano
2010/9/30 Raymond O'Donnell : > On 30/09/2010 12:17, Ben Carbery wrote: > Googling on "sql swap rows columns" found this: > > http://stackoverflow.com/questions/584232/t-sql-how-to-swap-rows-and-columns > > ...which you'll be able to adapt. We also have the fantastic crosstab in tablefunc module (

Re: [GENERAL] rotate psql output

2010-09-30 Thread Raymond O'Donnell
On 30/09/2010 12:17, Ben Carbery wrote: I have a query that returns many columns but few rows. I would like to display output horizontally instead of vertically, i.e. rotating by 90 degress, so column headings appear in the left margin, and the output is not 'wrapped'. Is this possible? I have ha

Re: [GENERAL] rotate psql output

2010-09-30 Thread Vincenzo Romano
2010/9/30 Ben Carbery : > Strange if this can't be done, I would have thought it a common request! Just curiosity. Is there any other DB capable of such a thing? -- Vincenzo Romano at NotOrAnd Information Technologies Software Hardware Networking Training Support Security -- NON QVIETIS MARIBVS

Re: [GENERAL] rotate psql output

2010-09-30 Thread Ben Carbery
On Thu, Sep 30, 2010 at 9:19 PM, Tommy Gildseth wrote: > Ben Carbery wrote: > >> I have a query that returns many columns but few rows. I would like to >> display output horizontally instead of vertically, i.e. rotating by 90 >> degress, so column headings appear in the left margin, and the output

Re: [GENERAL] rotate psql output

2010-09-30 Thread Devrim GÜNDÜZ
On Thu, 2010-09-30 at 21:17 +1000, Ben Carbery wrote: > I have a query that returns many columns but few rows. I would like to > display output horizontally instead of vertically, i.e. rotating by 90 > degress, so column headings appear in the left margin, and the output > is not > 'wrapped'. > Is

Re: [GENERAL] rotate psql output

2010-09-30 Thread Tommy Gildseth
Ben Carbery wrote: I have a query that returns many columns but few rows. I would like to display output horizontally instead of vertically, i.e. rotating by 90 degress, so column headings appear in the left margin, and the output is not 'wrapped'. Is this possible? I have had no luck searching

[GENERAL] rotate psql output

2010-09-30 Thread Ben Carbery
I have a query that returns many columns but few rows. I would like to display output horizontally instead of vertically, i.e. rotating by 90 degress, so column headings appear in the left margin, and the output is not 'wrapped'. Is this possible? I have had no luck searching for this as rotate usu