Subject | Re: [firebird-support] adding default syntax |
---|---|
Author | Thomas Steinmaurer |
Post date | 2010-10-23T21:16:33Z |
Hello Hans,
ALTER TABLE t ALTER [COLUMN] c SET DEFAULT default_value;
ALTER TABLE t ALTER [COLUMN] c DROP DEFAULT;
--
Best Regards,
Thomas Steinmaurer
LogManager Series - Logging/Auditing Suites supporting
InterBase, Firebird, Advantage Database, MS SQL Server and
NexusDB V2
Upscene Productions
http://www.upscene.com
My blog:
http://blog.upscene.com/thomas/
> After having created a Relation Column, was is the syntax to alter thatFirebird 2.1.3 release notes p. 39:
> Column to Default 0 ?
>
> For example.
>
> Alter Table Test add Saldo integer.
>
> then
>
> Alter Table Alter Saldo to Saldo type Integer Default 0, but that doesn't
> work
ALTER TABLE t ALTER [COLUMN] c SET DEFAULT default_value;
ALTER TABLE t ALTER [COLUMN] c DROP DEFAULT;
--
Best Regards,
Thomas Steinmaurer
LogManager Series - Logging/Auditing Suites supporting
InterBase, Firebird, Advantage Database, MS SQL Server and
NexusDB V2
Upscene Productions
http://www.upscene.com
My blog:
http://blog.upscene.com/thomas/