1、用T-SQL语句创建一个如下图所示的数据表,表名为Students,建在名为TestDB的数据库中:

2025-05-14 15:23:46
推荐回答(2个)
回答1:

select sum(score) as 分数总和
from 表
where type=11
感觉意思不是很全,所以觉得是很简单的事情,不知道能不能帮到你

回答2:

use testdb go 1.create table student(学号 char(8)not null primary key,姓名 char(10)not null,系别 char(20)not null default '计算机系') 2.insert into student values('03j1111','张三') insert into student values('02j1111','李四') 3.alter table student add 出生年月 datetime 4.update student set 系别='经管系' where 学号 like'03j%' 5.delete from student where 出生年月<'1978-12-3'