pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: tlange@gwdg.de
To: pgsql-sql@postgresql.org
Subject: [Fwd: Re: sorry, now with subject... trigger & nextval(seq)]
Date: Fri, 21 May 2010 09:19:53 +0200
Message-ID: <a0d0e2b5bc0c61727f9af7fa92913b3f.squirrel@mailbox.gwdg.de> (raw)

> On Thursday 20 May 2010 5:53:51 pm tlange@gwdg.de wrote:
>> I'm new to triggers in PostgreSQL. I have to create a trigger on insert
>> to
>> increment a sequence to overcome MS-Access' limitation in acknowledging
>> serial "datatype".
>>
>
> You know serial is just a shortcut for:
>
> pid int NOT NULL DEFAULT nextval('seq')

yes. sorry datatype quoted was bit ambiguous.

> I think you will find Access will place nice if you use the long form to
> define
> your autoincrement.
>
Ok, I'll give it a try!

Thank you, Torsten





Message-ID: <a0d0e2b5bc0c61727f9af7fa92913b3f.squirrel@mailbox.gwdg.de>
Permalink:  ../a0d0e2b5bc0c61727f9af7fa92913b3f.squirrel@mailbox.gwdg.de/
Also on:    postgresql.org/message-id/a0d0e2b5bc0c61727f9af7fa92913b3f.squirrel@mailbox.gwdg.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tlange@gwdg.de
  Subject: Re: [Fwd: Re: sorry, now with subject... trigger & nextval(seq)]
  In-Reply-To: <a0d0e2b5bc0c61727f9af7fa92913b3f.squirrel@mailbox.gwdg.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox