Re: Syntax Error in COPY when “create function”

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Osvaldo Rosario Kussama <osvaldo_kussama(at)yahoo(dot)com(dot)br>
Cc: hongliu zou <zouhongliu(at)gmail(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Syntax Error in COPY when “create function”
Date: 2007-02-27 17:25:54
Message-ID: 21453.1172597154@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Osvaldo Rosario Kussama <osvaldo_kussama(at)yahoo(dot)com(dot)br> writes:
>> |Does this mean the "filename" in COPY command can not be a variable?|

Got it in one.

You can use EXECUTE to put together commands that require a variable
in places where PG doesn't allow one.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message S.F. Lee 2007-02-28 01:56:39 unsubscribe
Previous Message Rommel the iCeMAn 2007-02-27 17:16:42 Re: Change the Default Database