SQL query - data output (newlne command) help

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

SQL query - data output (newlne command) help

Postby ipsy » Tue May 01, 2012 7:59 pm

Made a SQL query that i run. However the data output is bit nasty to read since the lenght of it so i want break it into a new line to make it easier to read. I understood i could do this by using a newline command but the ones i found hasnt worked (the just create a new empty column).For instance: ' \n ' , E ' \n '.

Anyone can help me out here what it is i need to use?

To make it clear, say i have 2 columns only (VPIP and PFR). Now data output when i run the query is
VPIP PFR
15 13

I want to be able to make the data output to be
VPIP
15
PFR
13
ipsy
 
Posts: 21
Joined: Fri Jul 04, 2008 7:33 pm

Re: SQL query - data output (newlne command) help

Postby kraada » Wed May 02, 2012 8:45 am

I'm afraid I'm not aware of a way to do that - have you considered asking on the PostgreSQL mailing lists?
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: SQL query - data output (newlne command) help

Postby ipsy » Wed May 02, 2012 5:31 pm

kraada wrote:I'm afraid I'm not aware of a way to do that - have you considered asking on the PostgreSQL mailing lists?


ty ye, will try there.

i know u can do it cause i made it work some month ago but im awful saving stuff i do and lost it. anyways will write back if any intrest when i find out.
ipsy
 
Posts: 21
Joined: Fri Jul 04, 2008 7:33 pm


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests