![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SQL
文章平均质量分 81
笔记
.Deborah
这个作者很懒,什么都没留下…
展开
-
SQL练习2
SQL练习24.1查有成绩的学生信息select *from studentwhere student.sid in(select DISTINCT sc.sid from sc);5.查询「白」姓老师的数量select count(*)from teacherwhere teacher.tname like’白%’;6.查询学过「张三」老师授课的同学的信息select * from student,SCwhere(student.sid=SC.sidand sc.cid in (原创 2021-03-17 12:22:04 · 144 阅读 · 0 评论 -
SQL 练习1
SQL 练习1一、 建立各种表1.学生表 Student(SId,Sname,Sage,Ssex)–SId 学生编号,Sname 学生姓名,Sage 出生年月,Ssex 学生性别create table student(Sid integer,Sname varchar(20),Sage integer,Ssex varchar(20)) charset=utf8;insert into student(Sid, Sname,Sage,Ssex) values(1,‘张三’,18,‘男’);in原创 2021-03-15 21:14:02 · 494 阅读 · 0 评论