摘要:
1.使用SQL语句ALTER TABLE分别删除studentsdb数据库的student_info表、grade表、curriculum表的主键索引。 alter table student_info drop primary key; alter table grade drop primary 阅读全文
摘要:
1.在student_info表中查找与“刘东阳”性别相同的所有学生的姓名、出生日期。 select 姓名,出生日期 from student_info where 性别=(select 性别 from student_info where 姓名='刘东阳' ); 2.使用IN子查询查找所修课程编号 阅读全文
摘要:
1.对student_info表,查询学生的学号、姓名、性别、出生日期及家庭住址,查询结果先按照性别的由小到大排序,性别相同的再按学号由大到小排序。 use studentsdb; select 学号,姓名,性别,出生日期,家庭地址 from student_info order by 性别 asc 阅读全文