pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ed Loehr <eloehr@austin.rr.com>
To: Peter Landis <ntwebdeveloper@yahoo.com>
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: POSTGRESQL and PERL?
Date: Fri, 26 May 2000 11:35:35 -0500
Message-ID: <392EA7D7.BD13724E@austin.rr.com> (raw)
References: <20000526155818.9972.qmail@web3204.mail.yahoo.com>

Peter Landis wrote:
> 
> but what if you have a variable set like:
> $sort_selection = "name";
> 
> How do you sort by the variable?
> 
> For instance you cannot do...
> $sqh = $dbh->prepare(q{select name from company order
> by $sort_selection;});

Why not?  The query string is created before prepare is called...

Regards,
Ed Loehr



view thread (4+ messages)  latest in thread

Message-ID: <392EA7D7.BD13724E@austin.rr.com>
Permalink:  ../392EA7D7.BD13724E@austin.rr.com/
Also on:    postgresql.org/message-id/392EA7D7.BD13724E@austin.rr.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-sql@postgresql.org
  Cc: eloehr@austin.rr.com, ntwebdeveloper@yahoo.com
  Subject: Re: POSTGRESQL and PERL?
  In-Reply-To: <392EA7D7.BD13724E@austin.rr.com>
  References: <20000526155818.9972.qmail@web3204.mail.yahoo.com> <392EA7D7.BD13724E@austin.rr.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