Re: Insert into a table with only a SERIAL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: felix(at)crowfix(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Insert into a table with only a SERIAL
Date: 2000-06-26 03:27:57
Message-ID: 11893.961990077@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<felix(at)crowfix(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Lockhart 2000-06-26 04:02:48 Re: SQL INSERT bug with 6.5.3 and 7.0.2
Previous Message Tom Lane 2000-06-26 03:21:16 Re: SQL INSERT bug with 6.5.3 and 7.0.2