Re: Insert into a table with only a SERIAL - Mailing list pgsql-general

From Tom Lane
Subject Re: Insert into a table with only a SERIAL
Date
Msg-id 11893.961990077@sss.pgh.pa.us
Whole thread Raw
In response to Insert into a table with only a SERIAL  (<felix@crowfix.com>)
Responses Re: Insert into a table with only a SERIAL  (Richard Harvey Chapman <hchapman@3gfp.com>)
List pgsql-general
<felix@crowfix.com> writes:
> I can't insert into aaa unless I pass a value; these don't work:

>   insert into aaa;
>   insert into aaa values ();
>   insert into aaa () values ();

"INSERT INTO aaa DEFAULT VALUES" is the SQL-approved verbiage.

(Hey, I didn't design this language ;-))

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: SQL INSERT bug with 6.5.3 and 7.0.2
Next
From: Thomas Lockhart
Date:
Subject: Re: SQL INSERT bug with 6.5.3 and 7.0.2