You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
330 B
MySQL
5 lines
330 B
MySQL
9 months ago
|
ALTER TABLE sys_dept ADD dept_category VARCHAR(100) DEFAULT NULL COMMENT '部门类别编码';
|
||
|
ALTER TABLE sys_post ADD dept_id BIGINT(20) NOT NULL COMMENT '部门id', ADD post_category VARCHAR(100) DEFAULT NULL COMMENT '岗位类别编码';
|
||
|
UPDATE sys_post SET dept_id = 100;
|
||
|
UPDATE sys_post SET dept_id = 103 where post_id = 1;
|