How to change existing column type of a table in Sybase?

Ziyang Zhang picture Ziyang Zhang · Jun 28, 2012 · Viewed 43.7k times · Source

I searched for a while and can't get an answer.

Why this doesn't work? ALTER TABLE mytable ALTER COLUMN price DOUBLE

Answer

aF. picture aF. · Jun 29, 2012

The syntax is incorrect and there is no DOUBLE datatype in Sybase.

So, you may try it like this:

ALTER TABLE mytable MODIFY price float