Subject | Re: [firebird-support] How To Change Column DataType From Varchar To Integer ? |
---|---|
Author | Mark Rotteveel |
Post date | 2015-04-22T08:26:28Z |
On Wed, 22 Apr 2015 05:38:39 +0000 (UTC), "Vishal Tiwari
vishualsoft@... [firebird-support]"
<firebird-support@yahoogroups.com> wrote:
the old column, rename the new column (optional).
Mark
vishualsoft@... [firebird-support]"
<firebird-support@yahoogroups.com> wrote:
> Hi All,which
> I have a Table called Table1, in that I have a column called Status
> is of type Varchar and contains values link '1', '2', '3' etc, i.e. allCreate a new column, assign/convert the values from the old column, drop
> integer values only but in Varchar type.
> I need to change this column's datatype to Integer for some reason, any
> idea how do we do it ?
> I am trying like:
> ALTER TABLE Table1 ALTER STATUS TYPE Integer;
> But I am getting an error like, "Cannot change datatype......."
the old column, rename the new column (optional).
Mark