Re: Creating a table by loading a sql file.

From: Devrim Gündüz <devrim(at)gunduz(dot)org>
To: rhodesm4 <rhodesm4(at)msu(dot)edu>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Creating a table by loading a sql file.
Date: 2017-10-27 08:18:12
Message-ID: 1509092292.24698.1.camel@gunduz.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Hi,

On Fri, 2017-10-27 at 04:55 +0000, rhodesm4 wrote:
> psql:users.sql:10: ERROR: syntax error at or near "USER"
> LINE 1: CREATE TABLE USER(

USER is a reserved keyword in PostgreSQL:

https://www.postgresql.org/docs/current/static/sql-keywords-appendix.html

You need to change the table name.

Regards,
--
Devrim Gündüz
EnterpriseDB: https://www.enterprisedb.com
PostgreSQL Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message joan_he@189.cn 2017-10-27 09:46:20 Parameters bgwriter_lru_maxpages Comment error?
Previous Message rhodesm4 2017-10-27 04:55:59 Creating a table by loading a sql file.