pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Devrim Gündüz <devrim@gunduz.org>
To: rhodesm4 <rhodesm4@msu.edu>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: Creating a table by loading a sql file.
Date: Fri, 27 Oct 2017 09:18:12 +0100
Message-ID: <1509092292.24698.1.camel@gunduz.org> (raw)
In-Reply-To: <DM3PR1201MB1119B73EFEF09A29F7510484955A0@DM3PR1201MB1119.namprd12.prod.outlook.com>
References: <DM3PR1201MB1119B73EFEF09A29F7510484955A0@DM3PR1201MB1119.namprd12.prod.outlook.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (3+ messages)  latest in thread

Message-ID: <1509092292.24698.1.camel@gunduz.org>
Permalink:  ../1509092292.24698.1.camel@gunduz.org/
Also on:    postgresql.org/message-id/1509092292.24698.1.camel@gunduz.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: devrim@gunduz.org, rhodesm4@msu.edu
  Subject: Re: Creating a table by loading a sql file.
  In-Reply-To: <1509092292.24698.1.camel@gunduz.org>
  References: <DM3PR1201MB1119B73EFEF09A29F7510484955A0@DM3PR1201MB1119.namprd12.prod.outlook.com> <1509092292.24698.1.camel@gunduz.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox