Subject | Re: [firebird-support] How to increase character field size |
---|---|
Author | Martijn Tonies |
Post date | 2007-01-21T11:38:30Z |
Mario,
Is there any reason why you are trying it this way?
You are updating a system table, which is generally not really
supported or the safest way of doing things.
Database Workbench - development tool for Firebird and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
Is there any reason why you are trying it this way?
You are updating a system table, which is generally not really
supported or the safest way of doing things.
> In Firebird 2, I am trying to increase the size of the existing fieldCould be because the field_name isn't the same as in the table :)
> from 5 to 10 characters.
> The following SQL query does work, but only for a specific data set:
> update RDB$FIELDS set
> RDB$FIELD_LENGTH = 10,
> RDB$CHARACTER_LENGTH = 10,
> RDB$CHARACTER_SET_ID = NULL
> where RDB$FIELD_NAME = 'RDB$648'
>
> Other datasets that need to be updated automatically have different
> internal RDB$FIELD_NAME numbers (i.e. different from RDB$648)
> The actual name of the field is LITTERMARK and the table name is
> PROGENY. The field type is VARCHAR (5).
> I have tried the following, but it does not work:
> update RDB$FIELDS set RDB$FIELD_LENGTH = 10, RDB$CHARACTER_LENGTH = 10
> where (RDB$FIELD_NAME = 'LITTERMARK') and (RDB$RELATION_NAME = 'PROGENY')
> How to structure this query to change the LITTERMARK field size in aMartijn Tonies
> generic way, irrespective of the internal RDB$FIELD_NAME number ?
Database Workbench - development tool for Firebird and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com