pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kenneth Jacker <khj@cs.appstate.edu>
To: pgsql-sql@postgresql.ORG
Subject: #define in SQL?
Date: Tue, 14 Jul 1998 07:42:17 -0400
Message-ID: <e1zrod5gm.fsf@beagle.cs.appstate.edu> (raw)

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@cs.appstate.edu
-Computer Science Dept       www.cs.appstate.edu/~khj
-Appalachian State Univ
-Boone, NC  28608  USA        



view thread (2+ messages)  latest in thread

Message-ID: <e1zrod5gm.fsf@beagle.cs.appstate.edu>
Permalink:  ../e1zrod5gm.fsf@beagle.cs.appstate.edu/
Also on:    postgresql.org/message-id/e1zrod5gm.fsf@beagle.cs.appstate.edu

 · 

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: khj@cs.appstate.edu
  Subject: Re: #define in SQL?
  In-Reply-To: <e1zrod5gm.fsf@beagle.cs.appstate.edu>
  References: <e1zrod5gm.fsf@beagle.cs.appstate.edu>

* 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