guoyu/_已清理文件备份_周六 22512/sql/database_modify_exam_id_nullable.sql

5 lines
180 B
MySQL
Raw Normal View History

2025-12-06 20:11:36 +08:00
-- 修改 score 表的 exam_id 字段,允许为 NULL因为考试名称不是必填项
ALTER TABLE `score`
MODIFY COLUMN `exam_id` bigint DEFAULT NULL COMMENT '考试ID';