
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for demo
-- ----------------------------
DROP TABLE IF EXISTS `demo`;
CREATE TABLE `demo`  (
  `did` int(11) NOT NULL AUTO_INCREMENT,
  `dname` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `comment` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`did`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 27 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of demo
-- ----------------------------
INSERT INTO `demo` VALUES (20, '1', '1111');
INSERT INTO `demo` VALUES (21, '2', '222');
INSERT INTO `demo` VALUES (22, '3', '333');
INSERT INTO `demo` VALUES (23, '4', '444');
INSERT INTO `demo` VALUES (24, '5', '555');
INSERT INTO `demo` VALUES (25, '6', '666');
INSERT INTO `demo` VALUES (26, '7', '777');

-- ----------------------------
-- Table structure for course
-- ----------------------------
DROP TABLE IF EXISTS `course`;
CREATE TABLE `course`  (
  `courseId` int(11) NOT NULL AUTO_INCREMENT,
  `coursename` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `credit` int(11) NULL DEFAULT NULL,
  `teacher` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`courseId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of course
-- ----------------------------
INSERT INTO `course` VALUES (1, '英语', 0, '张华');
INSERT INTO `course` VALUES (2, 'C语言', 1, '李磊');

SET FOREIGN_KEY_CHECKS = 1;
