增加字段
alter TABLE 表名 add COLUMN 字段名 varchar(20) DEFAULT null comment '备注' ;
alter TABLE unsplash_board_img add COLUMN img_create_at datetime DEFAULT null comment '图片创建时间' ;
alter TABLE unsplash_board_img add COLUMN img_update_at datetime DEFAULT null comment '图片更新时间' ;
设置字符编码 和排序规则
alter table pexels_board_img add COLUMN img_max_url varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci comment '原网站最大图url';
alter table tablename alter column drop default; (若本身存在默认值,则先删除)
alter table tablename alter column set default 't5';(若本身不存在则可以直接设定)