Home > Archive > SQL Anywhere Feedback > November 2005 > alter table add default not null









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author alter table add default not null
krisztian pinter

2005-11-25, 7:23 am


on a non-empty table, adding a not null field with default fails,
because non-empty tables can not be extended with a not null field.

however, adding a nullable field with default is OK, and it fills
the new column with the default value nicely!

so, why ASA lament in the first example?? please, please, please,
don't complain, but do your job!

ps: i have ASA 8 only. if it is addressed already, ignore this post
Dmitri

2005-11-25, 7:23 am

krisztian pinter wrote:

> on a non-empty table, adding a not null field with default fails,
> because non-empty tables can not be extended with a not null field.


----------------------------------------------------
What's New in SQL Anywhere Studio
What's New in Version 9.0.1
New features in version 9.0.1

Adaptive Server Anywhere new features

....

ALTER TABLE statement enhancement ALTER TABLE can now add a NOT NULL
column with a default value to a non-empty table. This feature provides
increased flexibility when modifying existing tables.

....
----------------------------------------------------

Dmitri.
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com