From: | elwood(at)agouros(dot)de (Konstantinos Agouros) |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: How to insert with a serial |
Date: | 2001-10-22 19:29:53 |
Message-ID: | elwood.1003778968@news.agouros.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
In <elwood(dot)1003670142(at)news(dot)agouros(dot)de> elwood(at)agouros(dot)de (Konstantinos Agouros) writes:
>Hi,
>I have a table defined like this:
> Attribute | Type | Modifier
>-------------+-----------------------+------------------------------------------
> name | character varying(40) |
> type | integer |
> id | integer | not null default nextval('serial'::text)
> ownerteamid | integer |
>Index: devices_pkey
>How do I insert into it so that id is automatically incremented?
Ok I created it with 7.0 after using type serial everything works fine \:)
Thanks for all the help,
Konstantin
--
Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elwood(at)agouros(dot)de
Otkerstr. 28, 81547 Muenchen, Germany. Tel +49 89 69370185
----------------------------------------------------------------------------
"Captain, this ship will not survive the forming of the cosmos." B'Elana Torres
From | Date | Subject | |
---|---|---|---|
Next Message | Keary Suska | 2001-10-22 19:30:16 | Re: Listing users |
Previous Message | Dave Cramer | 2001-10-22 18:58:59 | Re: Sequence problems during restart |