| From: | Craig Ringer <craig(at)postnewspapers(dot)com(dot)au> |
|---|---|
| To: | x asasaxax <xanaruto(at)gmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Primary Key with auto increment field |
| Date: | 2008-04-02 03:49:47 |
| Message-ID: | 47F3025B.7060805@postnewspapers.com.au |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
x asasaxax wrote:
> I would like to increment one field, depending of the value of the
> other. here´s an example:
Didn't you just ask this question with practically the same wording a
few days ago?
What was wrong with the answers then? What has changed? What's the
*difference* this time?
Repeating your question won't help, you need to ask something more
specific or at least different if you want a useful answer.
If you did not understand the examples you were given last time (which
it sounds like you didn't given your final message) then I strongly
suggest AVOIDING this approach. It is complex, and the solutions
suggested to you require you to understand some PL/PgSQL and a bit about
how locking is used. Are you SURE you can't just use a normal sequence
instead?
--
Craig Ringer
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Enke | 2008-04-02 03:56:38 | Is there an md5sum for tables? |
| Previous Message | Craig Ringer | 2008-04-02 03:12:23 | Re: Primary Key with serial the solution? |