Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 4C1FE632685 for ; Sat, 7 Mar 2009 20:38:06 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 96100-08 for ; Sat, 7 Mar 2009 20:38:02 -0400 (AST) Received: from mx3.hub.org (mx3.hub.org [206.223.169.73]) by mail.postgresql.org (Postfix) with ESMTP id 27E57633FBF for ; Sat, 7 Mar 2009 20:19:15 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by mx3.hub.org (Postfix) with ESMTP id 7CAD637B50D for ; Sat, 7 Mar 2009 20:19:14 -0400 (AST) Received: from perhan.alvh.no-ip.org (200-126-91-44.bk6-dsl.surnet.cl [200.126.91.44]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id n280KoSZ012934 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 7 Mar 2009 16:20:55 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id DA69F47CDE; Sat, 7 Mar 2009 21:14:11 -0300 (CLST) Date: Sat, 7 Mar 2009 21:14:11 -0300 From: Alvaro Herrera To: =?iso-8859-1?Q?F=E9lix_S=E1nchez_Rodr=EDguez?= Cc: pgsql-admin@postgresql.org Subject: Re: Autonumeric field Message-ID: <20090308001411.GE3821@alvh.no-ip.org> References: <49B2785C.5060206@gmx.de> <001401c99f4c$f38acaa0$3000a8c0@atenea> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <001401c99f4c$f38acaa0$3000a8c0@atenea> User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Sat, 07 Mar 2009 16:20:56 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/105 X-Sequence-Number: 31605 Félix Sánchez Rodríguez wrote: > Hi: > > I'm brand new to Postgre and I'm wondering if there is an "autonumeric" > data type. I'm using Case Studio and Navicat for PostgreSQL to manipulate > the Data Bases. Yes. It's called SERIAL. (It's not strictly a separate type, but it should do what you want.) You may be interested in knowing that there's a spanish list: http://archives.postgresql.org/pgsql-es-ayuda/ There are several people from Cuba there. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.