Re: how do i insert a default value?
| От | Tom Lane |
|---|---|
| Тема | Re: how do i insert a default value? |
| Дата | |
| Msg-id | 10237.1037125707@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: how do i insert a default value? ("scott.marlowe" <scott.marlowe@ihs.com>) |
| Ответы |
Re: how do i insert a default value?
|
| Список | pgsql-general |
"scott.marlowe" <scott.marlowe@ihs.com> writes:
> On Tue, 12 Nov 2002, Andy Kriger wrote:
>> How do you insert a default value in an insert statement that doesn't
>> specify column names? For example, I have a table with 20 columns. I don't
>> want to specify the names in order to skip columns that have default values.
> Postgresql uses the keyword DEFAULT with no ticks to get a default.
> insert into table bubba values ('truck','washer',DEFAULT,'gun
> rack',DEFAULT,36,24,36);
That's new in 7.3, though. In prior releases you could only (a) omit
columns at the right, or (b) use a column name list.
regards, tom lane
В списке pgsql-general по дате отправления: