Re: A couple of newbie questions ...
| От | Shane Ambler |
|---|---|
| Тема | Re: A couple of newbie questions ... |
| Дата | |
| Msg-id | 4887558C.8060405@Sheeky.Biz обсуждение исходный текст |
| Ответ на | Re: A couple of newbie questions ... (Craig Ringer <craig@postnewspapers.com.au>) |
| Ответы |
Re: A couple of newbie questions ...
|
| Список | pgsql-general |
Craig Ringer wrote:
> INSERT INTO table (fld_y,fld_z) VALUES ('y','z')
>
> which is really doing:
>
> INSERT INTO table (fld_x, fld_y,fld_z) VALUES (DEFAULT, 'y','z')
>
To be honest I hadn't seen the use of INSERT INTO table (fld_x,
fld_y,fld_z) VALUES (DEFAULT, 'y','z') before, I have always gone with
INSERT INTO table (fld_x, fld_y,fld_z) VALUES (NULL, 'y','z')
is DEFAULT a better option than using NULL? or is it just a preference
to spell out the implied default entry?
I've only used DEFAULT in CREATE TABLE(...)
--
Shane Ambler
pgSQL (at) Sheeky (dot) Biz
Get Sheeky @ http://Sheeky.Biz
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
В списке pgsql-general по дате отправления: