摘要: 【非原创,记录】 课程表:找出语文成绩第二高的学生,无结果返回null 学号 课程 成绩 1 语文 90 1 数学 86 2 语文 77 2 数学 67 3 数学 100 思路: 1. 嵌套查询,第二高<第一高,成绩去重distinct select max(distinct 成绩) from 课程 阅读全文
posted @ 2022-01-19 17:05 Widereye 阅读(34) 评论(0) 推荐(0) 编辑
摘要: SQLite 只支持 left join 不支持 right join 和 full join sqlite 执行 full outer join 、right join 报错:RIGHT and FULL OUTER JOINs are not currently supported。 解决方法: 阅读全文
posted @ 2022-01-19 16:09 Widereye 阅读(743) 评论(0) 推荐(0) 编辑
摘要: mysql limit 基础含义:(最好关键字大写区分) select* from student limit 5 —— 取student表的前5条数据 select * from student limit 2,5 —— 取student表,跳过2条,从第3条开始取5条数据,3,4,5,6,7 解 阅读全文
posted @ 2022-01-19 11:46 Widereye 阅读(1555) 评论(0) 推荐(0) 编辑