On Wed, May 4, 2016 at 8:58 AM, Marc Mamin <M(dot)Mamin(at)intershop(dot)de> wrote:
> select 'x' sql;
>
> ERROR: syntax error at or near "sql"
> LINE 1: select 'x' sql;
It's likely that you already know this, but for the benefit of
anyone finding the thread who doesn't -- you can avoid this sort of
error by either inserting the optional AS keyword or quoting the
column label:
select 'x' as sql;
or:
select 'x' "sql";
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company