mysql添加一個字段(

mysql添加一個字段(在指定的一個字段後面)
舉個栗子:alter table inquiry add error_code varchar(3) after add_time;
說明:alter table + 表名 + add + 要添加的字段 字段類型 +  after  + 要跟隨的字段名
alter table t_adviser_info add hold int COMMENT '0持有,1未持有' after stockname
alter table t_adviser_info add profit int comment "0盈利,1虧損" after hold
alter table t_adviser_info add weight int comment "0輕倉,1重倉" after profit
相關文章
相關標籤/搜索