Re: How to insert with a serial

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mitch Vincent" <mvincent(at)cablespeed(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to insert with a serial
Date: 2001-10-22 21:48:53
Message-ID: 26357.1003787333@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Mitch Vincent" <mvincent(at)cablespeed(dot)com> writes:
> insert 'ing a NULL in place of the serial will work too, yes?
> INSERT INTO DEVICES (my_serial_id, name, type, ownerteamid) VALUES
> (NULL,'scoobydoo', 1, 43);

No, that'll insert a NULL.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2001-10-22 21:54:30 Re: Getting OID after Insert
Previous Message Sam Cao 2001-10-22 21:39:24 Solaris 2.6 support.