From: Herouth Maoz <herouth@oumail.openu.ac.il>
To: khj@cs.appstate.edu
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] #define in SQL?
Date: Tue, 14 Jul 1998 14:53:24 +0300
Message-ID: <l03110706b1d0f6a75c32@[147.233.159.109]> (raw)
In-Reply-To: <e1zrod5gm.fsf@beagle.cs.appstate.edu>
At 14:42 +0300 on 14/7/98, Kenneth Jacker wrote:
> I've looked in some SQL books and online, but can't seem to find what
> I'm looking for ...
>
> The "copy" statement requires absolute paths to indicate file names.
> Since these can be quite long, I would like a way -- similar to the C
> pre-processor's "#define" -- to define a symbol in the beginning of my
> SQL code that can be referenced later.
>
> In a C program I'd write:
>
> #define EXPORTFILE "/home/khj/tmp/pgsql.export"
>
> Can something similar be done in SQL?
No. SQL is not a procedural language. It doesn't even have user-defined
variables, much less constants.
Herouth
--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma
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: herouth@oumail.openu.ac.il, khj@cs.appstate.edu
Subject: Re: [SQL] #define in SQL?
In-Reply-To: <l03110706b1d0f6a75c32@[147.233.159.109]>
References: <e1zrod5gm.fsf@beagle.cs.appstate.edu> <l03110706b1d0f6a75c32@[147.233.159.109]>
* 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