学生表students
建表语句: CREATE TABLE `students` ( `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '姓名', `age` int(11) NULL DEFAULT NULL COMMENT '年龄', `gender` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'M=男, F=女' ) ENGINE = InnoDB CHARACTER SET = utf8; -- 学生表数据: INSERT INTO `students` VALUES ('张一', 12, '男'); INSERT INTO `students` VALUES ('张二', 18, '男');
扫描二维码关注公众号,回复:
10742905 查看本文章
INSERT INTO `students` VALUES ('张二', 19, '男'); INSERT INTO `students` VALUES ('张三', 122, '男'); INSERT INTO `students` VALUES ('张四', 123, '男'); INSERT INTO `students` VALUES ('张五', 161, '男'); INSERT INTO `students` VALUES ('张六', 66, '男'); INSERT INTO `students` VALUES ('张七', 35, '女'); INSERT INTO `students` VALUES ('张八', 55, '男'); INSERT INTO `students` VALUES ('张九', 56, '男'); INSERT INTO `students` VALUES ('张十', 96, '男'); INSERT INTO `students` VALUES ('张十一', 11, '男'); |
单表基础查询
|