pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Enver ALTIN <enver.altin@frontsite.com.tr>
To: Michael Hanna <taojones@sympatico.ca>
Cc: pgsql-php@postgresql.org
Subject: Re: displaying a rowset in php...same column names
Date: Wed, 07 Jan 2004 13:14:34 +0200
Message-ID: <1073474074.31454.3.camel@skyblue.office.frontsite.com.tr> (raw)
In-Reply-To: <EB366B10-40BE-11D8-8D6A-000A95B34330@sympatico.ca>
References: <71B8A8BEC516CF46835CA629156CF21163F6EE@bedford.idacorp.local>
	<200312291402.35789.scrawford@pinpointresearch.com>
	<EB366B10-40BE-11D8-8D6A-000A95B34330@sympatico.ca>

On Wed, 2004-01-07 at 05:09, Michael Hanna wrote:
> This query: SELECT login, firstname, lastname, date_part('epoch',  
> lastlogin), date_part('epoch', regdate) FROM admin ORDER BY login
> results in:
> 
>     login   |    firstname     |    lastname     |    date_part     |     
> date_part

SELECT foo as bar,bar as foo from footable

notice the "as" thingie. It would help.
-- 
 __________
|          |
|          |  Enver ALTIN (a.k.a. skyblue)
|          |  Software developer, IT consultant
|    FRONT |
|==========|  FrontSITE Bilgi Teknolojisi A.Þ.
|_____SITE_|  http://www.frontsite.com.tr/

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (4+ messages)  latest in thread

Message-ID: <1073474074.31454.3.camel@skyblue.office.frontsite.com.tr>
Permalink:  ../1073474074.31454.3.camel@skyblue.office.frontsite.com.tr/
Also on:    postgresql.org/message-id/1073474074.31454.3.camel@skyblue.office.frontsite.com.tr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: enver.altin@frontsite.com.tr, taojones@sympatico.ca
  Subject: Re: displaying a rowset in php...same column names
  In-Reply-To: <1073474074.31454.3.camel@skyblue.office.frontsite.com.tr>
  References: <71B8A8BEC516CF46835CA629156CF21163F6EE@bedford.idacorp.local> <200312291402.35789.scrawford@pinpointresearch.com> <EB366B10-40BE-11D8-8D6A-000A95B34330@sympatico.ca> <1073474074.31454.3.camel@skyblue.office.frontsite.com.tr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox