如题,直接在Workbench中修改了默认值为'',点击Apply,Output如下:
19:09:09|Apply changes to t_users|No changes detected
没有效果,看来只能用sql语句来操作了。
解决方案:执行sql语句:alter table learn.t_users alter column history set default '';
19:14:21| alter table learn.t_users alter column history set default '' |0 row(s) affected Records: 0 Duplicates: 0 Warnings: 0 0.079 sec
成功!
本文介绍了一种在Workbench中更改表字段默认值的方法。当直接通过Workbench界面修改默认值不起作用时,可以通过执行SQL语句的方式进行更改。文章详细记录了使用SQL语句alter table的具体步骤。

6万+

被折叠的 条评论
为什么被折叠?



