#define in SQL?

From: Kenneth Jacker <khj(at)cs(dot)appstate(dot)edu>
To: pgsql-sql(at)postgresql(dot)ORG
Subject: #define in SQL?
Date: 1998-07-14 11:42:17
Message-ID: e1zrod5gm.fsf@beagle.cs.appstate.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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?

Thanks,

-Prof Kenneth H Jacker khj(at)cs(dot)appstate(dot)edu
-Computer Science Dept www.cs.appstate.edu/~khj
-Appalachian State Univ
-Boone, NC 28608 USA

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Herouth Maoz 1998-07-14 11:53:24 Re: [SQL] #define in SQL?
Previous Message Holger Mitterwald 1998-07-14 09:46:14 View to other Tablespace?