Re: default value syntax - pg compared to?
От | Josh Berkus |
---|---|
Тема | Re: default value syntax - pg compared to? |
Дата | |
Msg-id | web-23712@davinci.ethosmedia.com обсуждение исходный текст |
Ответ на | default value syntax - pg compared to? ("Emils Klotins" <emils@mail.grafton.lv>) |
Список | pgsql-sql |
Emils, > do you happen to know, if there is any sqlserver that WON'T handle > inserting default value if it is not specified in the INSERT field > list? > I am particularly interested in ORACLE, INFORMIX and MYSQL . MS SQL 6.5, 7.0 and 2000 all support default values on incremental fields ... with some caveats: 1. Unlike PostgreSQL, MSSQL server will not permit you to override an "Identity Value" auto-incrementing field; 2. MSSQL 6.5 and 7.0 do not support user-defined functions as default-values (or, for that matter, user-defined functions at all). Also, you should be aware that the pgODBC driver for Win32 clients does not recognize PostgreSQL sequences correctly when called as default vaues for other than a SERIAL field (i.e. if you use the DEFAULT NEXTVAL('sequence') construction rather than the SERIAL type, pgODBC will error out on INSERTS). -Josh Berkus ______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete informationtechnology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco
В списке pgsql-sql по дате отправления: