Re: [SQL] INSERT w/o variable names for a SERIAL type?
От | Peter Eisentraut |
---|---|
Тема | Re: [SQL] INSERT w/o variable names for a SERIAL type? |
Дата | |
Msg-id | Pine.LNX.4.21.0002260418130.3063-100000@localhost.localdomain обсуждение исходный текст |
Ответ на | INSERT w/o variable names for a SERIAL type? ("Emils Klotins" <emils@mail.usis.bkc.lv>) |
Ответы |
Re: [SQL] INSERT w/o variable names for a SERIAL type?
Re: [SQL] INSERT w/o variable names for a SERIAL type? |
Список | pgsql-sql |
Emils Klotins writes: > Now, if I want to write a general #define, I'd need to have a way > to specify 'default' for SERIAL field, for, if I omit the id field in > VALUES, I need to specify all the rest of the fields explicitly. > > Is there any value I could put in place of id in VALUES part, to > make it replaced with the next value in sequence? INSERT INTO my_table VALUES (a, b, c, DEFAULT, x, y, z, ...); -- Peter Eisentraut Sernanders väg 10:115 peter_e@gmx.net 75262 Uppsala http://yi.org/peter-e/ Sweden
В списке pgsql-sql по дате отправления: