Re: Blank SQL insert statements

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "Ashley (at) Turton" <ashley(at)turton(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Blank SQL insert statements
Date: 2001-10-17 20:36:13
Message-ID: Pine.LNX.4.30.0110172024080.628-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ashley @ Turton writes:

> Is it possible in PostgreSQL to construct a blank record without
> specifying a list of fields and values in an INSERT statement (so I
> can perform a collection for UPDATEs to populate the blank record)?

INSERT INTO tablename DEFAULT VALUES;

(The default values are going to be NULL unless you specified something
else when you created the table.)

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-10-17 20:36:44 Re: To Postgres Devs : Wouldn't changing the select limit
Previous Message Peter Eisentraut 2001-10-17 20:35:52 Re: User privileges on sequences