wlzboy
2025-12-30 a4b14a35a2209a30e53472e6333b13aa4a55b0eb
1
2
3
4
5
6
7
8
-- 在sys_dept表中添加department_id字段,用于记录SQL Server中的departmentID
-- 该字段用于部门同步功能
 
-- 添加department_id字段
ALTER TABLE sys_dept ADD COLUMN department_id INT NULL COMMENT 'SQL Server中的部门ID';
 
-- 为department_id字段创建索引,提高查询效率
CREATE INDEX idx_department_id ON sys_dept(department_id);