📅  最后修改于: 2022-03-11 15:04:55.435000             🧑  作者: Mango
ALTER TABLE database.table
ADD COLUMN columnname INT DEFAULT(1),
ADD FOREIGN KEY fk_name(fk_column) REFERENCES reftable(refcolumn) ON DELETE CASCADE;