CREATE TABLE `doctor_schedules` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`doctor_name` varchar(32) NOT NULL COMMENT '医生名称',
`doctor_code` varchar(32) NOT NULL COMMENT '医生编号',
`dept_code` varchar(32) NOT NULL COMMENT '科室编号',
`schedule_id` bigint(32) NOT NULL COMMENT '排班id',
`schedule_flag` int(2) NOT NULL COMMENT '排班标识:',
`registrat_fee` decimal(11,2) NOT NULL COMMENT '挂号费',
`create_time` datetime DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='医生信息表';
-- 1.1 修改字段类型
alter table doctor_schedules modify column `doctor_name` varchar(32);
alter table doctor_schedules modify column `registrat_fee` DECIMAL(11,2);
alter table doctor_schedules modify column `schedule_flag`
Mysql 新增、修改、删除 语句
最新推荐文章于 2023-01-17 11:17:21 发布