X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1CB9852984 for ; Thu, 23 Jun 2005 21:48:58 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90522-08 for ; Fri, 24 Jun 2005 00:48:57 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7FF0552988 for ; Thu, 23 Jun 2005 21:48:56 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j5O0mw3c020713; Thu, 23 Jun 2005 20:48:58 -0400 (EDT) To: David.Bear@asu.edu Cc: pgsql-admin@postgresql.org Subject: Re: stupid insert error In-reply-to: <20050624001203.GL398@asu.edu> References: <20050624001203.GL398@asu.edu> Comments: In-reply-to David Bear message dated "Thu, 23 Jun 2005 17:12:03 -0700" Date: Thu, 23 Jun 2005 20:48:58 -0400 Message-ID: <20712.1119574138@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/186 X-Sequence-Number: 17941 David Bear 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