Re: default value syntax - pg compared to? - Mailing list pgsql-sql

From Josh Berkus
Subject Re: default value syntax - pg compared to?
Date
Msg-id web-23712@davinci.ethosmedia.com
Whole thread Raw
In response to default value syntax - pg compared to?  ("Emils Klotins" <emils@mail.grafton.lv>)
List 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 by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: [DOCS] Extending PostgreSQL Using C
Next
From: Salvador Mainé
Date:
Subject: I need an aggregate with 2 parameters