Re: [SQL] Stupid SQl question on inserting items

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: "Zot O'Connor" <zot(at)ZotConsulting(dot)com>
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] Stupid SQl question on inserting items
Date: 1999-05-25 18:12:46
Message-ID: 199905251812.TAA04409@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"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(dot)Elphick(at)lfix(dot)co(dot)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

Browse pgsql-sql by date

  From Date Subject
Next Message Steven M. Wheeler 1999-05-25 18:48:01 Re: [SQL] Fatal process interaction
Previous Message Oleg Bartunov 1999-05-25 17:33:28 Re: [SQL] Stupid SQl question on inserting items