Re: copy from - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: copy from
Date
Msg-id Pine.BSF.4.10.10008151209240.87178-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Re: copy from  ("Adam Lang" <aalang@rutgersinsurance.com>)
List pgsql-sql

On Tue, 15 Aug 2000, Adam Lang wrote:

> Gotcha. Now, if I do an insert and just don't specify that field at all, it
> will, use the default value, correct?  As long as I don't "touch" the field
> with anything it uses the default.

Right, as long as you don't specify the field in the column list.

There's a special case I should mention.  If you want to insert only
default values into all columns, the correct way is:
"insert into table default values" -- It usually doesn't come up,
but could if you had a table that was only a sequence value;



pgsql-sql by date:

Previous
From: "Michael Wagner"
Date:
Subject: sql programming
Next
From: Webb Sprague
Date:
Subject: Re: sql programming