Re: default value syntax - pg compared to?

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: "Emils Klotins" <emils(at)mail(dot)grafton(dot)lv>, pgsql-sql(at)postgresql(dot)org
Subject: Re: default value syntax - pg compared to?
Date: 2001-03-12 20:18:38
Message-ID: web-23712@davinci.ethosmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fork 2001-03-12 21:08:28 Re: I need an aggregate with 2 parameters
Previous Message Josh Berkus 2001-03-12 20:03:58 Re:Comparing Dates