mysql
司欣然
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mysql面试
回答一定要简要,能抓住重点,适当深入,酌情炫技。 索引,优化 explain关键字有哪些字段? id: 每条的id,表示执行顺序 select_type : 表示类型 simple table: 输出行所引用的表 type 主要的几个如下: system const eql_ref ref index range all possible key key key_length ref rows extra using index using where using原创 2020-07-08 14:18:23 · 1510 阅读 · 0 评论 -
数据库45题
简书 45道题: 1.查询" 01 “课程比” 02 "课程成绩高的学生的信息及课程分数 select * from student a inner join sc b on a.sid = b.sid INNER JOIN sc c on a.sid = c.sid and b.cid = 01 and c.cid = 02 WHERE b.score>c.score 1.1 查询同时存在 01 课程 和 02 课程的情况 题目要求查询同时存在01、02课程的记录,首先我们确定这个是来源于成绩表,因原创 2020-07-04 23:27:21 · 879 阅读 · 0 评论
分享