How to change column datatype in SQL database without losing data

前端 未结 11 2597
迷失自我
迷失自我 2020-12-02 06:55

I have SQL Server database and I just realized that I can change the type of one of the columns from int to bool.

How can I do that withou

11条回答
  •  误落风尘
    2020-12-02 07:23

    I can modify the table field's datatype, with these following query: and also in the Oracle DB,

    ALTER TABLE table_name
    MODIFY column_name datatype;
    

提交回复
热议问题