第3次作业-SQL语句的基本使用2(修改表-基本查询)

这个作业属于哪个课程 https://edu.cnblogs.com/campus/uzz/cs3
这个作业要求在哪里 https://edu.cnblogs.com/campus/uzz/cs3/homework/13057

SQL语句

1.

alter table curriculum drop 课程名称;

2.

alter table grade   MODIFY 分数 decimal(5,2);

3.

alter table student_info   ADD 备注 varchar(50);

4.

create table stu
select * from studentsdb.student_info;

5.

  delete from stu
  where 学号=0004;

6.

  update stu
  set 家庭住址 = '滨江市新建路96号'
  where 学号 = 0002 ;

7.

  alter table stu
  drop 备注;

8. (1)

select 学号,姓名,出生日期 from student_info;

(2)

      select 姓名,家庭住址 from student_info
      where 学号 = 0002;

(3)

     select 姓名,出生日期 from student_info
     where 性别 = '女' and 出生日期 > '1995-12-31' ;

posted @ 2023-09-25 16:58  蛋炒凡  阅读(56)  评论(0)    收藏  举报