pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ken Johanson <pg-user@kensystem.com>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-general@postgresql.org
Subject: Re: RETURNING clause: how to specifiy column indexes?
Date: Thu, 13 Dec 2007 17:48:31 -0700
Message-ID: <4761D2DF.4080204@kensystem.com> (raw)
In-Reply-To: <4760DC91.8090103@kensystem.com>
References: <22a9f7570703301215y44a937d0r5faa706bad7948c@mail.gmail.com>
	<4610AA0C.30608@ejurka.com>
	<47579D44.6060005@kensystem.com>
	<47579FBE.1070503@kensystem.com>
	<475F7766.2040005@kensystem.com>
	<12796.1197439644@sss.pgh.pa.us>
	<Pine.BSO.4.64.0712120138360.1768@leary.csoft.net>
	<4760D33E.40004@kensystem.com>
	<Pine.BSO.4.64.0712130149270.6192@leary.csoft.net>
	<4760DC91.8090103@kensystem.com>

Kris and all,

Here is the query I will call to the get the name of columns by ordinal 
position. Do you see any compatibility drivers will older server 
versions, or other issues?

SELECT column_name
FROM information_schema.columns
WHERE table_catalog=? AND table_schema=? AND table_name=?
ORDER BY ordinal_position

Ken





view thread (11+ messages)  latest in thread

Message-ID: <4761D2DF.4080204@kensystem.com>
Permalink:  ../4761D2DF.4080204@kensystem.com/
Also on:    postgresql.org/message-id/4761D2DF.4080204@kensystem.com

 · 

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-jdbc@postgresql.org
  Cc: pg-user@kensystem.com, books@ejurka.com, pgsql-general@postgresql.org
  Subject: Re: RETURNING clause: how to specifiy column indexes?
  In-Reply-To: <4761D2DF.4080204@kensystem.com>
  References: <22a9f7570703301215y44a937d0r5faa706bad7948c@mail.gmail.com> <4610AA0C.30608@ejurka.com> <47579D44.6060005@kensystem.com> <47579FBE.1070503@kensystem.com> <475F7766.2040005@kensystem.com> <12796.1197439644@sss.pgh.pa.us> <Pine.BSO.4.64.0712120138360.1768@leary.csoft.net> <4760D33E.40004@kensystem.com> <Pine.BSO.4.64.0712130149270.6192@leary.csoft.net> <4760DC91.8090103@kensystem.com> <4761D2DF.4080204@kensystem.com>

* 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