Re: [SQL] Stupid SQl question on inserting items
От | Oliver Elphick |
---|---|
Тема | Re: [SQL] Stupid SQl question on inserting items |
Дата | |
Msg-id | 199905251812.TAA04409@linda.lfix.co.uk обсуждение исходный текст |
Ответ на | Stupid SQl question on inserting items ("Zot O'Connor" <zot@ZotConsulting.com>) |
Список | 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 по дате отправления: