Re: how do i insert a default value? - Mailing list pgsql-general

From scott.marlowe
Subject Re: how do i insert a default value?
Date
Msg-id Pine.LNX.4.33.0211121018440.24725-100000@css120.ihs.com
Whole thread Raw
In response to how do i insert a default value?  ("Andy Kriger" <akriger@greaterthanone.com>)
Responses Re: how do i insert a default value?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Tue, 12 Nov 2002, Andy Kriger wrote:

> How do you insert a default value in an insert statement that doesn't
> specify column names? For example, I have a table with 20 columns. I don't
> want to specify the names in order to skip columns that have default values.
>
> In MySql a null or empty value uses the default column value. In Postgres?

Postgresql uses the keyword DEFAULT with no ticks to get a default.

insert into table bubba values ('truck','washer',DEFAULT,'gun
rack',DEFAULT,36,24,36);




pgsql-general by date:

Previous
From: Vassil Kriakov
Date:
Subject: Re: C++: get value for integral types?
Next
From: "scott.marlowe"
Date:
Subject: Re: Upgrade to dual processor machine?