From: | "Serge Fonville" <serge(dot)fonville(at)gmail(dot)com> |
---|---|
To: | "Gustavo Rosso" <grosso(at)sadaic(dot)org(dot)ar> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: serial |
Date: | 2008-12-04 13:45:50 |
Message-ID: | 680cbe0e0812040545p1d07e6f0r49a9a0c5ef7eb50f@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, Dec 4, 2008 at 3:42 PM, Gustavo Rosso <grosso(at)sadaic(dot)org(dot)ar> wrote:
> I created this table:
>
> create table se (n serial);
>
> Column | Type | Modifiers
> ---------+---------+------------------------------------------------
> n | integer | not null default nextval('se_n_seq'::regclass)
>
> I inserted two record, later select, but column n (serial) no
> auto-incremented
> banco=# select * from se;
> n
> ---
> 0
> 0
> (2 rows)
>
> Why?
> Thanks
> Gustavo
>
You inserted values in a table with only a serial column?
From | Date | Subject | |
---|---|---|---|
Next Message | Jaime Casanova | 2008-12-04 13:54:35 | Re: about privileges on pg_stat_activity columns |
Previous Message | Grzegorz Jaśkiewicz | 2008-12-04 13:43:28 | Re: serial |