摘要: ——本文源自《黑马程序员》 阅读全文
posted @ 2019-10-24 10:28 cielpupu 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 左连接 格式:select from 表1 left join 表2 on 表1.列=表2.列 例1:查询所有学生的成绩,包括没有成绩的学生。 例2:查询所有学生的成绩,包括没有成绩的学生,需要显示课程名。 join前面生成的表是左表,join后面是右表 右连接 格式:select from 表1 阅读全文
posted @ 2019-10-22 20:18 cielpupu 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1、查询学生"百里守约"的基本信息 select from students where name='百里守约' 2、查询学生百里守约"或”百里玄策”的基本信息 select from students where name='百里守约' or name='百里玄策' 3、查询姓"张"学生的姓名,年 阅读全文
posted @ 2019-10-21 13:50 cielpupu 阅读(1573) 评论(0) 推荐(0) 编辑
摘要: 连接查询 数据准备 例1:查询学生信息及学生的成绩 等值连接 此方法会产生笛卡尔积,生成的记录总数=表1的总数 表2的总数,会产生临时表 内连接 select from 表1 inner join 表2 on 表1.列=表2.列 不会产生笛卡尔积,不会产生临时表,性能高 例2:查询课程信息及课程的成 阅读全文
posted @ 2019-10-20 14:27 cielpupu 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 逻辑删除 所谓的逻辑删除其实并不是真正的删除,而是在表中将对应的是否删除标识或者字段做修改操作。在逻辑上数据是被删除的,但数据本身依然存在库中 例如 update students3 set isdelete=0 update students3 set isdelete=1 where id=1 阅读全文
posted @ 2019-10-19 21:21 cielpupu 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 常用数据类型 Int:整数,长度没有作用 Varchar:字符串,varchar(3)表示最多存放3个字符,1个中文或英文或符合都占1个字符 Decimal:小数,decimal(5,2)表示共存5位数,小数2位,整数3位 Datetime:日期 约束 主键:int类型,无符号,自动递增,唯一的标识 阅读全文
posted @ 2019-10-18 15:40 cielpupu 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 葫芦娃葫芦娃一根藤上6朵花 1.队名 读完文章再睡觉 2.队员 吴伟华(队长) 211606381 蔺皓雯 211606369 杨池宇 211606340 曾茜 211606351 鲁婧楠 211606372 蔡晨旸 211606349 3.队长博客链接 https://www.cnblogs.co 阅读全文
posted @ 2018-10-16 21:53 cielpupu 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 小学出题系统 蔺皓雯 369 蔡晨旸 349 作业链接:https://edu.cnblogs.com/campus/fzzcxy/2016SE/homework/2180 原型链接:https://modao.cc/app/8kIgaQgq0a3U7EON3W8C2Jzti8VezYf scree 阅读全文
posted @ 2018-10-09 22:03 cielpupu 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 211606369 蔺皓雯 211606349 蔡晨旸 预估与实际 | PSP2.1 | Personal Software Process Stages | 预估耗时(分钟) | 实际耗时(分钟) | | | | | | | Planning | 计划 | 500 | 600 | | • Esti 阅读全文
posted @ 2018-09-30 11:56 cielpupu 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 211606369 蔺皓雯 211606349 蔡晨旸 小学三年级数学题MathExam369 一、预估与实际 | PSP2.1 | Personal Software Process Stages | 预估耗时(分钟) | 实际耗时(分钟) | | | | | | | Planning | 计划 阅读全文
posted @ 2018-09-19 00:19 cielpupu 阅读(253) 评论(2) 推荐(0) 编辑