Subject | Re: [firebird-support] Alter Coulmn DEFAULT |
---|---|
Author | Martijn Tonies |
Post date | 2003-11-19T15:50:55Z |
Hi,
You can't.
1) define a DOMAIN and modify the column type to the domain
2) use Database Workbench and edit the default in the Table Editor -> check
the "DDL" tab to see how it's done. This is also a workaround, and it
updates the system tables directly.
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com
> How can I ALTER the DEFAULT value of a column which is pre-defined?Without dropping it.
You can't.
> Ex:There are workarounds:
>
> ALTER TABLE MEMBER ALTER COLUMN MEMBER_TYP
> TYPE
> VARCHAR (10) CHARACTER SET WIN1254 DEFAULT 'E';
>
> this statement is not working
1) define a DOMAIN and modify the column type to the domain
2) use Database Workbench and edit the default in the Table Editor -> check
the "DDL" tab to see how it's done. This is also a workaround, and it
updates the system tables directly.
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com