[Fwd: Re: sorry, now with subject... trigger & nextval(seq)]

From: tlange(at)gwdg(dot)de
To: pgsql-sql(at)postgresql(dot)org
Subject: [Fwd: Re: sorry, now with subject... trigger & nextval(seq)]
Date: 2010-05-21 07:19:53
Message-ID: a0d0e2b5bc0c61727f9af7fa92913b3f.squirrel@mailbox.gwdg.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> On Thursday 20 May 2010 5:53:51 pm tlange(at)gwdg(dot)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

Browse pgsql-sql by date

  From Date Subject
Next Message tlange 2010-05-21 07:35:20 Re: sorry, now with subject... trigger & nextval(seq)
Previous Message Richard Broersma 2010-05-21 01:56:39 Re: