From: | "Aycock, Jeff R(dot)" <JEFF(dot)R(dot)AYCOCK(at)saic(dot)com> |
---|---|
To: | "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: syntax error during function call |
Date: | 2010-01-27 16:27:58 |
Message-ID: | 65151B9A7C8C9C4284ABC85F0336DE5003972DB4@0015-its-exmb11.us.saic.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Pavel,
Per your suggestion I modified one line below BEGIN to look like this:
EXECUTE 'SELECT *, $1, now() INTO "schema_1".'||"whoami"||' FROM
"schema_2".'||"whoami"||' where created_dt between $2 and $3;'
However, it is still giving me the same syntax error as before. I must be missing something here though.
Thanks for the suggestion, however.
Regards,
Jeff Aycock
-----Original Message-----
From: Pavel Stehule [mailto:pavel(dot)stehule(at)gmail(dot)com]
Sent: Wednesday, January 27, 2010 11:13 AM
To: Aycock, Jeff R.
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] syntax error during function call
>
> ERROR: syntax error at or near "("
>
> LINE 1: SELECT *, $1, now() INTO schema_1.(table_A) FROM schema_2.(table_A)
> where created_dt between $2 and $3;
>
>
schema_1.(table_A) is nonsense. have to be "schema_1"."table_A"
regards
Pavel Stehule
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2010-01-27 16:33:07 | Re: syntax error during function call |
Previous Message | Pavel Stehule | 2010-01-27 16:12:34 | Re: syntax error during function call |