Re: stupid insert error - Mailing list pgsql-admin

From Tom Lane
Subject Re: stupid insert error
Date
Msg-id 20712.1119574138@sss.pgh.pa.us
Whole thread Raw
In response to stupid insert error  (David Bear <David.Bear@asu.edu>)
List pgsql-admin
David Bear <David.Bear@asu.edu> writes:
> I guess I'm too stupid to see the error, but I don't understand why
> the following fails.

> insert into person3 (asuid, fname, lname, addedby, addedon,
> slopbucket) values ("123455", "name", "name", "entered", "12/12/2004", NULL);
> ERROR:  column "123455" does not exist

You want single quotes not double quotes.  Double quotes are for
identifiers, single quotes are for literals.  See
http://www.postgresql.org/docs/8.0/static/sql-syntax.html#SQL-SYNTAX-IDENTIFIERS
and the following section.

            regards, tom lane

pgsql-admin by date:

Previous
From: "Bruno G. Albuquerque"
Date:
Subject: Re: stupid insert error
Next
From: "李江华"
Date:
Subject: Re: stupid insert error