Skip site navigation (1) Skip section navigation (2)

Re: Composed Key and autoincrement

From: joe speigle <joeofclew(at)yahoo(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Composed Key and autoincrement
Date: 2007-02-06 10:11:42
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
you could put your business logic into a trigger which is called on
insert, postgres (and me) don't know why or when you want to change the
second column.  
Or, you could make a constraint on the column (maybe?)

No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started. 

pgsql-novice by date

Next:From: Sue FittDate: 2007-02-06 10:18:08
Subject: Re: Stored Procedure to return a result set
Previous:From: Shane AmblerDate: 2007-02-06 09:48:41
Subject: Re: is there more documentation?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group