Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id F16DE9FC358 for ; Fri, 22 Jun 2007 13:03:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 11036-10 for ; Fri, 22 Jun 2007 13:03:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 1397E9FB4DF for ; Fri, 22 Jun 2007 13:03:16 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 1BD063141F; Fri, 22 Jun 2007 18:03:15 +0200 (MET DST) From: =?iso-8859-1?q?Rodrigo_De_Le=F3n?= X-Newsgroups: pgsql.sql Subject: Re: insert statement woes Date: Fri, 22 Jun 2007 16:03:11 -0000 Organization: http://groups.google.com Lines: 12 Message-ID: <1182528191.769825.63870@p77g2000hsh.googlegroups.com> References: <1182500715.382199.200730@n2g2000hse.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Complaints-To: groups-abuse@google.com In-Reply-To: <1182500715.382199.200730@n2g2000hse.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: p77g2000hsh.googlegroups.com; posting-host=200.75.231.230; posting-account=zGrw3Q0AAADU1m7dOiE5S6vTNtvJ7FdA To: pgsql-sql@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/176 X-Sequence-Number: 28666 On Jun 22, 3:25 am, earthwormgaz wrote: > hello, i'm trying to do a simple (so i thought) sql insert operation, > but i'm being told the insert violates unique constraint > say i've got three columns, two text and one integer for the id, i'm > doing the following > INSERT INTO myTable (text1, text2) VALUES ('some text', 'some more > text'); > so i'm not trying to enter anything into the key column, i thought a > unique one should be generated for me? DDL please...