INSERT Issues - Mailing list pgsql-hackers

From Rod Taylor
Subject INSERT Issues
Date
Msg-id 022c01c0be97$d1efd9b0$2205010a@jester
Whole thread Raw
Responses Re: INSERT Issues
Re: INSERT Issues
List pgsql-hackers
CREATE TABLE junk ( col SERIAL PRIMARY KEY
);

INSERT INTO junk (col) DEFAULT VALUES;

INSERT INTO junk DEFAULT VALUES:


Second insert works, first one fails.

INSERT INTO table [ ( column [, ...] ) ]   { DEFAULT VALUES | VALUES ( expression [, ...] ) | SELECT query }


The column list should just be ignored correct?

--
Rod Taylor

There are always four sides to every story: your side, their side, the
truth, and what really happened.

pgsql-hackers by date:

Previous
From: "Rod Taylor"
Date:
Subject: Foreign Key & Rule confusion RE: Lost Trigger(s)?
Next
From: "Rod Taylor"
Date:
Subject: Re: Foreign Key & Rule confusion WAS: Lost Trigger(s)?