| From: | Thom Brown <thom(at)linux(dot)com> |
|---|---|
| To: | Carlos Mennens <carlos(dot)mennens(at)gmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Alter Table Auto_Increment |
| Date: | 2010-09-20 18:56:50 |
| Message-ID: | AANLkTinqaiR+GXR0OyanJyV-cK9DQs+tVZrLQWSg3i=C@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 20 September 2010 19:54, Carlos Mennens <carlos(dot)mennens(at)gmail(dot)com> wrote:
> On Mon, Sep 20, 2010 at 2:43 PM, A.M. <agentm(at)themactionfaction(dot)com> wrote:
>> DEFAULT
>
> Sorry just to be clear you're saying that I need to enter the command as:
>
> INSERT INTO table_name DEFAULT VALUES (
> 'data',
> 'data',
> 'data',
> 'data',
> '2010-09-20'
> );
>
Well, you can use the DEFAULT value if you wish:
INSERT INTO table_name (
DEFAULT,
'data',
'data',
'data',
'data',
'2010-09-20'
);
Where the keyword DEFAULT appears, it will, as you'd expect, use the
default value for that column.
--
Thom Brown
Twitter: @darkixion
IRC (freenode): dark_ixion
Registered Linux user: #516935
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Adrian Klaver | 2010-09-20 18:57:05 | Re: Alter Table Auto_Increment |
| Previous Message | Carlos Mennens | 2010-09-20 18:54:29 | Re: Alter Table Auto_Increment |