📜  更改表更改默认值 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:26.942000             🧑  作者: Mango

代码示例1
ALTER TABLE foobar_data MODIFY COLUMN col VARCHAR(255) NOT NULL DEFAULT '{}';

A second possibility which does the same:
ALTER TABLE foobar_data CHANGE COLUMN col col VARCHAR(255) NOT NULL DEFAULT '{}';