Subject | Re: alter table syntax |
---|---|
Author | skotaylor |
Post date | 2003-06-27T16:39Z |
--- In firebird-support@yahoogroups.com, "Martijn Tonies"
<m.tonies@u...> wrote:
First have to close all connections to the database, then:
update RDB$Relation_Fields set RDB$Null_Flag = null
where RDB$Field_Name = 'NAME'
and RDB$Relation_Name = 'STMENU'
That seems to have worked fine.
Thanks for the hint.
things. ;)
Scott.
<m.tonies@u...> wrote:
> Hi,About as clear as mud.
>
> > I'm want to alter a column from 'NOT NULL' to 'NULL', it doesn't need
> > to be 'NOT NULL' it's not part of any constraints.
>
> well, it's pretty clear - you cannot do this. :-)
> In order to do that, you need to drop a constraint and set theThanks, there is is.
> RDB$NULL_FLAG column.
First have to close all connections to the database, then:
update RDB$Relation_Fields set RDB$Null_Flag = null
where RDB$Field_Name = 'NAME'
and RDB$Relation_Name = 'STMENU'
That seems to have worked fine.
Thanks for the hint.
> An easier way is to download yourself a trial of Database WorkbenchNice, and I'm lazy, but not that lazy. I like to know how to do
> ( www.upscene.com ) - start the Table Editor and uncheck the "not
> null" box, then press "Save".
things. ;)
> With regards,Cheers.
Scott.