From: Oliver Elphick <olly@lfix.co.uk>
To: Zot O'Connor <zot@ZotConsulting.com>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] Stupid SQl question on inserting items
Date: Tue, 25 May 1999 19:12:46 +0100
Message-ID: <199905251812.TAA04409@linda.lfix.co.uk> (raw)
In-Reply-To: <zot@ZotConsulting.com> <374ADE8E.E7895F5@ZotConsulting.com>
"Zot O'Connor" wrote:
>This is a dumb basic level SQL question.
>
>is there any other way to insert records without having to fill in all
>of the values as in
>
>INSERT into table_name WITH VALUES (blah, blah, blah...)
INSERT INTO table (column1, column5, column8) VALUES (val1, val5, val8)
This lets you insert the values you are interested in and puts nulls (or
default values) in the rest.
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
========================================
"And Jesus answering said unto them, They that are
whole need not a physician; but they that are sick. I
come not to call the righteous, but sinners to
repentance." Luke 5:31,32
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: olly@lfix.co.uk, zot@ZotConsulting.com
Subject: Re: [SQL] Stupid SQl question on inserting items
In-Reply-To: <199905251812.TAA04409@linda.lfix.co.uk>
References: <199905251812.TAA04409@linda.lfix.co.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox