From: | Jerome ALET <alet(at)unice(dot)fr> |
---|---|
To: | patrice(at)idf(dot)net |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: [SQL] nextval |
Date: | 1998-05-28 10:01:07 |
Message-ID: | 356D35E3.3B5EC4A1@unice.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Patrice Hédé wrote:
> Maybe you should consider doing it with a default value as :
>
> CREATE TABLE auteurs (numero_auteur int4 default nextval('seq_auteurs'),
> nom_auteur text,
> prenom_auteur text,
> email_auteur text
> );
>
> and then, you don't need to create a rule.
>
Yes, I already know that solution, but I wondered why mine was bad (the
forgotten '') and finally I think I've found a (maybe already known) bug
in CREATE RULE (look at the results in my previous message).
Thanks.
bye,
Jerome ALET - alet(at)unice(dot)fr - http://cortex.unice.fr/~jerome
Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE
From | Date | Subject | |
---|---|---|---|
Next Message | Marin D | 1998-05-28 10:38:26 | Re: [SQL] nextval |
Previous Message | Patrice Hédé | 1998-05-28 09:48:08 | Re: [SQL] nextval |