Received: from dsb.appstate.edu (dsb.appstate.edu [152.10.1.50]) by hub.org (8.8.8/8.7.5) with ESMTP id HAA18244 for ; Tue, 14 Jul 1998 07:40:52 -0400 (EDT) Received: from spd5.appstate.edu (SYSTEM@spd5.appstate.edu [152.10.1.31]) by dsb.appstate.edu (8.8.8/8.8.8) with ESMTP id HAA11207 for ; Tue, 14 Jul 1998 07:40:50 -0400 (EDT) Received: from beagle.cs.appstate.edu ("port 1453"@beagle.cs.appstate.edu) by conrad.appstate.edu (PMDF V5.1-10 #26327) with SMTP id <01IZDSS7RC0EA23RQI@conrad.appstate.edu> for pgsql-sql@postgresql.ORG; Tue, 14 Jul 1998 07:40:47 EST Received: by beagle.cs.appstate.edu (5.65v3.2/1.1.10.5/08Jul97-0722PM) id AA23753; Tue, 14 Jul 1998 07:42:19 -0400 Date: Tue, 14 Jul 1998 07:42:17 -0400 From: Kenneth Jacker Subject: #define in SQL? Sender: khj@beagle.cs.appstate.edu To: pgsql-sql@postgresql.ORG Reply-to: khj@cs.appstate.edu Message-id: X-Mailer: Gnus v5.3/Emacs 19.34 Lines: 20 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