mysql 瑙﹀彂鍣ㄥ疄鐜扮骇鑱斿垹闄ゆ湁澶栭敭鐨勫寮犺〃
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql 瑙﹀彂鍣ㄥ疄鐜扮骇鑱斿垹闄ゆ湁澶栭敭鐨勫寮犺〃相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/%e8%a1%a8%e7%bb%93%e6%9e%84' title='琛ㄧ粨鏋?>琛ㄧ粨鏋?/a> -- delete hibernate records http using servlet base
2019-10-12 10:17:44
1銆佹暟鎹紝寤鸿〃鏃舵湁鍙兘浼氭姤閿欙紝鍙渶瑕佹妸鍓嶄笁琛屾敞閲婂垹鎺夊氨琛?/p>
-- ---------------------------- -- Table structure for tb_grade -- ---------------------------- DROP TABLE IF EXISTS `tb_grade`; CREATE TABLE `tb_grade` ( `grade_id` int(11) NOT NULL AUTO_INCREMENT, `grade_name` varchar(50) DEFAULT NULL, PRIMARY KEY (`grade_id`), UNIQUE KEY `grade_check` (`grade_name`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of tb_grade -- ---------------------------- INSERT INTO `tb_grade` VALUES (鈥?/span>1鈥?/span>, 鈥?/span>涓€骞寸骇鈥?/span>); INSERT INTO `tb_grade` VALUES (鈥?/span>2鈥?/span>, 鈥?/span>浜屽勾绾?/span>鈥?/span>); INSERT INTO `tb_grade` VALUES (鈥?/span>3鈥?/span>, 鈥?/span>涓夊勾绾?/span>鈥?/span>); INSERT INTO `tb_grade` VALUES (鈥?/span>4鈥?/span>, 鈥?/span>鍥涘勾绾?/span>鈥?/span>); INSERT INTO `tb_grade` VALUES (鈥?/span>5鈥?/span>, 鈥?/span>浜斿勾绾?/span>鈥?/span>); -- ---------------------------- -- Table structure for tb_subject -- ---------------------------- DROP TABLE IF EXISTS `tb_subject`; CREATE TABLE `tb_subject` ( `subject_id` int(11) NOT NULL AUTO_INCREMENT, `subject_name` varchar(20) DEFAULT NULL, `class_hour` int(3) DEFAULT NULL, `grade_id` int(11) DEFAULT NULL, PRIMARY KEY (`subject_id`), KEY `grade_id` (`grade_id`), CONSTRAINT `tb_subject_ibfk_1` FOREIGN KEY (`grade_id`) REFERENCES `tb_grade` (`grade_id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of tb_subject -- ---------------------------- INSERT INTO `tb_subject` VALUES (鈥?/span>1鈥?/span>, 鈥?/span>java鈥?/span>, 鈥?/span>60鈥?/span>, 鈥?/span>1鈥?/span>); INSERT INTO `tb_subject` VALUES (鈥?/span>2鈥?/span>, 鈥?/span>html鈥?/span>, 鈥?/span>40鈥?/span>, 鈥?/span>1鈥?/span>); INSERT INTO `tb_subject` VALUES (鈥?/span>3鈥?/span>, 鈥?/span>javascript鈥?/span>, 鈥?/span>30鈥?/span>, 鈥?/span>1鈥?/span>); INSERT INTO `tb_subject` VALUES (鈥?/span>4鈥?/span>, 鈥?/span>database鈥?/span>, 鈥?/span>60鈥?/span>, 鈥?/span>2鈥?/span>); INSERT INTO `tb_subject` VALUES (鈥?/span>5鈥?/span>, 鈥?/span>java oop鈥?/span>, 鈥?/span>60鈥?/span>, 鈥?/span>2鈥?/span>); INSERT INTO `tb_subject` VALUES (鈥?/span>6鈥?/span>, 鈥?/span>servlet鈥?/span>, 鈥?/span>40鈥?/span>, 鈥?/span>2鈥?/span>); INSERT INTO `tb_subject` VALUES (鈥?/span>7鈥?/span>, 鈥?/span>jsp鈥?/span>, 鈥?/span>40鈥?/span>, 鈥?/span>2鈥?/span>); INSERT INTO `tb_subject` VALUES (鈥?/span>8鈥?/span>, 鈥?/span>struts2鈥?/span>, 鈥?/span>60鈥?/span>, 鈥?/span>3鈥?/span>); INSERT INTO `tb_subject` VALUES (鈥?/span>9鈥?/span>, 鈥?/span>hibernate鈥?/span>, 鈥?/span>60鈥?/span>, 鈥?/span>3鈥?/span>); INSERT INTO `tb_subject` VALUES (鈥?/span>10鈥?/span>, 鈥?/span>spring鈥?/span>, 鈥?/span>60鈥?/span>, 鈥?/span>3鈥?/span>); -- ---------------------------- -- Table structure for tb_student -- ---------------------------- DROP TABLE IF EXISTS `tb_student`; CREATE TABLE `tb_student` ( `student_no` varchar(20) NOT NULL COMMENT 鈥?/span>瀛﹀彿鈥?/span>, `login_pwd` varchar(20) NOT NULL DEFAULT 鈥?/span>123456鈥?/span> COMMENT 鈥?/span>瀵嗙爜鈥?/span>, `student_name` varchar(20) NOT NULL COMMENT 鈥?/span>濮撳悕鈥?/span>, `sex` enum(鈥?/span>濂?/span>鈥?/span>,鈥?/span>鐢?/span>鈥?/span>) DEFAULT 鈥?/span>鐢?/span>鈥?/span> COMMENT 鈥?/span>鎬у埆鈥?/span>, `grade_id` int(11) DEFAULT NULL COMMENT 鈥?/span>骞寸骇 - 澶栭敭鈥?/span>, `phone` varchar(20) DEFAULT NULL COMMENT 鈥?/span>鑱旂郴鐢佃瘽鈥?/span>, `address` varchar(100) DEFAULT 鈥?/span>瀛︾敓瀹胯垗鈥?/span> COMMENT 鈥?/span>鐜颁綇鍧€鈥?/span>, `birthday` date DEFAULT NULL COMMENT 鈥?/span>鍑虹敓鏃ユ湡鈥?/span>, `email` varchar(50) DEFAULT NULL COMMENT 鈥?/span>鐢靛瓙閭欢鈥?/span>, PRIMARY KEY (`student_no`), KEY `grade_id` (`grade_id`), CONSTRAINT `tb_student_ibfk_1` FOREIGN KEY (`grade_id`) REFERENCES `tb_grade` (`grade_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of tb_student -- ---------------------------- INSERT INTO `tb_student` VALUES (鈥?/span>s01鈥?/span>, 鈥?/span>123456鈥?/span>, 鈥?/span>瀹嬫睙鈥?/span>, 鈥?/span>鐢?/span>鈥?/span>, 鈥?/span>1鈥?/span>, 鈥?/span>13888811111鈥?/span>, 鈥?/span>瀛︾敓瀹胯垗鈥?/span>, 鈥?/span>1985-10-10鈥?/span>, 鈥?/span>13888811111@qq.com鈥?/span>); INSERT INTO `tb_student` VALUES (鈥?/span>s02鈥?/span>, 鈥?/span>123456鈥?/span>, 鈥?/span>鍗繆涔?/span>鈥?/span>, 鈥?/span>鐢?/span>鈥?/span>, 鈥?/span>1鈥?/span>, 鈥?/span>13888822222鈥?/span>, 鈥?/span>鏁欏満瑗胯矾8鍙?/span>鈥?/span>, 鈥?/span>1987-08-08鈥?/span>, 鈥?/span>13888822222@qq.com鈥?/span>); INSERT INTO `tb_student` VALUES (鈥?/span>s03鈥?/span>, 鈥?/span>123456鈥?/span>, 鈥?/span>鍚寸敤鈥?/span>, 鈥?/span>鐢?/span>鈥?/span>, 鈥?/span>2鈥?/span>, 鈥?/span>13888833333鈥?/span>, 鈥?/span>鏁欏満瑗胯矾8鍙?/span>鈥?/span>, 鈥?/span>1991-06-06鈥?/span>, 鈥?/span>13888833333@qq.com鈥?/span>); INSERT INTO `tb_student` VALUES (鈥?/span>s04鈥?/span>, 鈥?/span>123456鈥?/span>, 鈥?/span>瀛欎簩濞?/span>鈥?/span>, 鈥?/span>濂?/span>鈥?/span>, 鈥?/span>2鈥?/span>, 鈥?/span>13888844444鈥?/span>, 鈥?/span>鏁欏満瑗胯矾16鍙?/span>鈥?/span>, 鈥?/span>1983-05-05鈥?/span>, 鈥?/span>13888844444@qq.com鈥?/span>); INSERT INTO `tb_student` VALUES (鈥?/span>s05鈥?/span>, 鈥?/span>123456鈥?/span>, 鈥?/span>鏉庨€?/span>鈥?/span>, 鈥?/span>鐢?/span>鈥?/span>, 鈥?/span>1鈥?/span>, 鈥?/span>13888855555鈥?/span>, 鈥?/span>瀛︾敓瀹胯垗鈥?/span>, 鈥?/span>1992-01-01鈥?/span>, 鈥?/span>13888855555@qq.com鈥?/span>); INSERT INTO `tb_student` VALUES (鈥?/span>s06鈥?/span>, 鈥?/span>123456鈥?/span>, 鈥?/span>椤惧ぇ瀚?/span>鈥?/span>, 鈥?/span>濂?/span>鈥?/span>, 鈥?/span>1鈥?/span>,