How to change MySQL column definition?

后端 未结 3 524
清歌不尽
清歌不尽 2020-12-02 07:10

I have a mySQL table called test:

create table test(
    locationExpect varchar(120) NOT NULL;
);

I want to change the locationExpect colum

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-02 07:24

    This should do it:

    ALTER TABLE test MODIFY locationExpert VARCHAR(120) 
    

提交回复
热议问题