Re: INSERT requires SERIAL column?

Поиск
Список
Период
Сортировка
От D'Arcy J.M. Cain
Тема Re: INSERT requires SERIAL column?
Дата
Msg-id 20020227085151.EB2131BB4@druid.net
обсуждение исходный текст
Ответ на Re: INSERT requires SERIAL column?  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-sql
On February 27, 2002 02:50 am, Christopher Kings-Lynne wrote:
> > Question:
> > Is this really necessary or am I missing something?
> > I thought specifying SERIAL columns is not neccessary in INSERT
> > statements.
>
> You need to specify the columns to insert into, skipping over the SERIAL
> column:

Good advice for any INSERT statement except perhaps one time queries typed
directly into the monitor.  Databases change and INSERT statements in code
that assume otherwise can bite you on the ass in hard to find ways.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: INSERT requires SERIAL column?
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: Err. compiling func. with SET TRANS...