工欲善其事必先利其器
文章持续更新,可以微信搜索【小奇JAVA面试】第一时间阅读,回复【资料】获取福利,回复【项目】获取项目源码,回复【简历模板】获取简历模板,回复【学习路线图】获取学习路线图。
select * from student,teacher where student.id = teacher.sid;
select s.name,t.name from student s,teacher.t where s.id = t.sid;
select s.name,t.name from student s left join teacher t on s.id = t.sid;
select s.name,t.name from student s right join teacher t on s.id = t.sid;
select s.name,t.name from student s inner join teacher t on s.id = t.sid;
交集、并集、差集、补集
select * from student
union
select * from student where name = '张三';
select * from student
union all
select * from student where name = '张三';
select * from student
intersect
select * from student where name = '张三';
select * from student
minus
select * from student where name = '张三';
这里的相关内容还没有整理完毕,文章后面持续更新,建议收藏。
文章中涉及到的命令大家一定要像我一样每个都敲几遍,只有在敲的过程中才能发现自己对命令是否真正的掌握了。
可以微信搜索【小奇JAVA面试】第一时间阅读,回复【资料】获取福利,回复【项目】获取项目源码,回复【简历模板】获取简历模板,回复【学习路线图】获取学习路线图。