Re: Sequence value

From: Alessio Bragadini <alessio(at)albourne(dot)com>
To: epikkara(at)ktk(dot)oulu(dot)fi
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Sequence value
Date: 2000-12-15 09:49:12
Message-ID: 3A39E918.ECFB72BC@albourne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Esa Pikkarainen wrote:

> SQL ="SELECT nextval('koe_pkey_id') as val;
> INSERT INTO koe (id, name) values (val, 'uusi');"

INSERT INTO koe (id, name) (SELECT nextval('koe_pkey_id'), 'uusi');

--
Alessio F. Bragadini alessio(at)albourne(dot)com
APL Financial Services http://village.albourne.com
Nicosia, Cyprus phone: +357-2-755750

"It is more complicated than you think"
-- The Eighth Networking Truth from RFC 1925

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Marco Wittwer 2000-12-15 11:58:29 How can I set the right of access in a pgsql database?
Previous Message Roger Wernersson 2000-12-15 09:41:55 Re: Sequence value