Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 4E50C6332B4 for ; Tue, 1 Jun 2010 08:05:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 23128-02 for ; Tue, 1 Jun 2010 11:05:40 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from ikoffice.de (ikoffice.de [81.169.166.92]) by mail.postgresql.org (Postfix) with ESMTP id 9C11163341C for ; Tue, 1 Jun 2010 08:05:40 -0300 (ADT) Received: from p5481d791.dip.t-dialin.net ([84.129.215.145] helo=[192.168.1.22]) by ikoffice.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.66) (envelope-from ) id 1OJPHr-0004N3-4M for pgsql-sql@postgresql.org; Tue, 01 Jun 2010 13:05:35 +0200 Message-ID: <4C04E980.9080906@ikoffice.de> Date: Tue, 01 Jun 2010 13:05:36 +0200 From: Daniel Migowski User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: sorry, now with subject... trigger & nextval(seq) References: <45e30277e8954d24114a9fd63720c7e7.squirrel@mailbox.gwdg.de> <201005201846.53125.adrian.klaver@gmail.com> In-Reply-To: <201005201846.53125.adrian.klaver@gmail.com> Content-Type: multipart/mixed; boundary="------------020701020009030200030109" X-Spam-Bar: / X-Spam-Score-Int: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-5 required=5 tests=BAYES_20=-0.001, T_RP_MATCHES_RCVD=-0.01, T_STOX_BOUND_090909_B=0.01 X-Spam-Level: X-Archive-Number: 201006/1 X-Sequence-Number: 34192 This is a multi-part message in MIME format. --------------020701020009030200030109 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Am 21.05.2010 03:46, schrieb Adrian Klaver: > You know serial is just a shortcut for: > > pid int NOT NULL DEFAULT nextval('seq') > > I think you will find Access will place nice if you use the long form to define > your autoincrement. > Not true. Serial will also add an internal dependency between the sequence, will create the sequence and will drop everything if the column gets dropped. Regards, Daniel Migowski --------------020701020009030200030109 Content-Type: text/x-vcard; charset=utf-8; name="dmigowski.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="dmigowski.vcf" begin:vcard fn:Daniel Migowski n:Migowski;Daniel org:IKOffice.de adr:;;Nordstr. 10;Oldenburg;Niedersachen;26123;Deutschland email;internet:dmigowski@ikoffice.de title:Dipl.-Inf. tel;work:0441-2198895-2 tel;fax:0441-2198895-5 x-mozilla-html:TRUE url:http://www.ikoffice.de version:2.1 end:vcard --------------020701020009030200030109--