创建测试数据
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for tb_student
-- ----------------------------
DROP TABLE IF EXISTS `tb_student`;
CREATE TABLE `tb_student` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`sex` varchar(10) DEFAULT NULL,
`score` float(2,0) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of tb_student
-- ----------------------------
INSERT INTO `tb_student` VALUES ('1', '小明', 'F', '98');
INSERT INTO `tb_student` VALUES ('2', '小张', 'F', '89');
INSERT INTO `tb_student` VALUES ('3', '小花', 'M', '91');
1.四种事务隔离级别
mysql/innodb有四中事务隔离级别,分别为:</