Subject Re: [firebird-support] Alter type of column on non-empty table
Author Martijn Tonies
Hello Tom.

> Is there some risk for data to change the type of the column of the
> non-empty table.
> I need only longer string than now.
>
> alter table fakt alter poznamka type string_80;
>
> now it is poznamka = string_30;
>
> Or is better to do it with temporary column
>
> poznamka -> temp_30
> drop poznamka
> add poznamka string_80
> temp_30 -> poznamka
> drop temp_30

If there was a risk involved, what would be the purpose of the
ALTER statement? :-)

One thing to take in account though, is any dependencies in
Stored Procedures and so on.

Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com