Received: from mail.enterprise.net (mail.enterprise.net [194.72.192.18]) by hub.org (8.9.3/8.9.3) with ESMTP id QAA68443 for ; Tue, 25 May 1999 16:31:54 -0400 (EDT) (envelope-from olly@lfix.co.uk) Received: from linda.lfix.co.uk (root@max02-002.enterprise.net [194.72.195.122]) by mail.enterprise.net (8.8.5/8.8.5) with ESMTP id VAA07076; Tue, 25 May 1999 21:31:51 +0100 (GMT/BST) Received: from linda.lfix.co.uk (olly@localhost [127.0.0.1]) by linda.lfix.co.uk (8.9.3/8.9.3/Debian/GNU) with ESMTP id TAA04409; Tue, 25 May 1999 19:12:46 +0100 Message-Id: <199905251812.TAA04409@linda.lfix.co.uk> X-Mailer: exmh version 2.0.2 2/24/98 (debian) To: "Zot O'Connor" cc: pgsql-sql@postgreSQL.org Subject: Re: [SQL] Stupid SQl question on inserting items In-Reply-To: Message from "Zot O'Connor" of "Tue, 25 May 1999 10:31:58 PDT." <374ADE8E.E7895F5@ZotConsulting.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 25 May 1999 19:12:46 +0100 From: "Oliver Elphick" "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