substitute variable in sql?

From: "Johnson, Shaunn" <SJohnson6(at)bcbsm(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: substitute variable in sql?
Date: 2002-10-29 16:14:58
Message-ID: 73309C2FDD95D11192E60008C7B1D5BB04C74131@snt452.corp.bcbsm.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Running PostgreSQL 7.2.1 on RedHat Linux 7.2:

I have a query where I have to replace the
date parameter each time I run the query.

Is there a way to substitute just the date
parameter in the sql without having to
edit the script, re-run and edit again?

(Quiet as it's been kept, this looks like a
job for Perl ...)

Thanks!

-X

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2002-10-29 16:19:31 Re: substitute variable in sql?
Previous Message Johnson, Shaunn 2002-10-29 15:24:48 ps_dump -a