Re: POSTGRESQL and PERL?

From: Ed Loehr <eloehr(at)austin(dot)rr(dot)com>
To: Peter Landis <ntwebdeveloper(at)yahoo(dot)com>
Cc: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: POSTGRESQL and PERL?
Date: 2000-05-26 16:35:35
Message-ID: 392EA7D7.BD13724E@austin.rr.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2000-05-26 17:41:33 Re: POSTGRESQL and PERL?
Previous Message Tom Lane 2000-05-26 16:26:06 Re: aliases break my query