dbTalk Databases Forums  

DEFAULT constraint?

comp.databases.theory comp.databases.theory


Discuss DEFAULT constraint? in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Karsten Wutzke
 
Posts: n/a

Default DEFAULT constraint? - 06-08-2009 , 06:44 AM






Hello,

I wondered if the DEFAULT clause along with the NOT NULL, PRIMARY KEY
clauses in a CREATE TABLE statement was a constraint.

Is it?

I think it's not. Anywhere google takes me seems to be involving SQL
Server on that issue.

Coincidence? :-D

Karsten

Reply With Quote
  #2  
Old   
Philipp Post
 
Posts: n/a

Default Re: DEFAULT constraint? - 06-09-2009 , 09:52 AM






Quote:
I wondered if the DEFAULT clause along with the NOT NULL, PRIMARY KEY clauses in a CREATE TABLE statement was a constraint.
I see the SQL 92 standard referring to a DEFAULT *clause* instead of
the term DEFAULT *constraint*.

Apart from that, does it make sense to specify DEFAULT for a PRIMARY
KEY? Supposing it is not a compound key, it will fire at max. once and
then never again.

brgds

Philipp Post

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.