Re: [SQL] Stupid SQl question on inserting items - Mailing list pgsql-sql

From Oliver Elphick
Subject Re: [SQL] Stupid SQl question on inserting items
Date
Msg-id 199905251812.TAA04409@linda.lfix.co.uk
Whole thread Raw
In response to Stupid SQl question on inserting items  ("Zot O'Connor" <zot@ZotConsulting.com>)
List pgsql-sql
"Zot O'Connor" wrote: >This is a dumb basic level SQL question. > >is there any other way to insert records without
havingto 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
ID32B8FAA1                ========================================    "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
 




pgsql-sql by date:

Previous
From: "Brett W. McCoy"
Date:
Subject: Re: [SQL] using like
Next
From: JT Kirkpatrick
Date:
Subject: RE: [SQL] using like