DingCL

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
alter table curriculum drop 课程名称;

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

alter table student_info add 备注 varchar(50);

create database studb;
use studb;
create table stu  select * from studentsdb.student_info;

delete from stu where 学号 ='0004';

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

alter table stu drop 备注;

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

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

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

posted on 2023-09-25 18:17  DingCL  阅读(25)  评论(0)    收藏  举报