Re: A couple of newbie questions ...

From: Tino Wildenhain <tino(at)wildenhain(dot)de>
To: Shane Ambler <pgsql(at)Sheeky(dot)Biz>
Cc: rod(at)iol(dot)ie, admin <mick(at)mjhall(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: A couple of newbie questions ...
Date: 2008-07-23 19:10:46
Message-ID: 48878236.40405@wildenhain.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Shane Ambler wrote:
> Raymond O'Donnell wrote:
>
...
>> INSERT INTO table (fld_y, fld_z) VALUES ('y', 'z');
>
> Another way is INSERT INTO table VALUES (NULL,'y','z')

of course you meant:

INSERT INTO table VALUES (DEFAULT,'y','z')

since Null would be wrongly insert NULL value instead
of using the sequence value.

Regards
Tino

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Keaton Adams 2008-07-23 19:24:26 Equality search on timestamp value returns no rows
Previous Message dpage 2008-07-23 19:01:07 Re: mac install question