智慧树知到《SqlServer数据库原理与应用》章节测试答案
C.drop column address from student
D.delete address from student
正确答案:drop column address from student
3、在数据表中更新数据的命令是()
A.select
B.insert into
C.update…set
D.delete
正确答案:update…set
4、要删除数据表中满足某条件的记录的命令是()
A.delete
B.delete...from...
C.delete from...
D.delete from...where...
正确答案:delete from...where...
5、向student数据表中添加部分记录的命令是()
A.insert into
B.insert into student values()
C.insert into student() values()
D.insert into student ...values...
正确答案:insert into student() values()
6、向student数据表中添加全部记录的命令是()
A.insert into
B.insert into student
C.nsert into student values()
D.nsert into student() values()
正确答案:nsert into student values()
7、向student表中添加某一列address的命令是()
A.alter table student add address varchar(50)
B.add address varchar(50)
C.insert into address varchar(50)
D.insert into student address varchar(50)
正确答案:alter table student add address varchar(50)
8、将student表中的列address的数据类型中的字节大小改为varchar(50),使用的语句命令是()
A.update student set
B.add address varchar(50)
C.alter table student alter address varchar(50)
D.alter address varchar(50)
正确答案:alter table student alter address varchar(50)
9、创建数据表的语法命令是()
A.create table
B.create database
C.create view
D.creat table
正确答案:create table
10、更新student数据表中address列的数据类型中字节长度为varchar(50)
A.alter table student drop column address
B.alter table student alter address varchar(50)
C.drop column address from student
D.delete address from student
正确答案:alter table student alter address varchar(50)
11、修改student表中学号为2015001的学生的姓名为“张三”
A.update student set sname=’ 张三’ where sid=’2015001’
B.update student set sname=张三 where sid=’2015001’
C.update student set sname=”张三” where sid=’2015001’
D.alter table student alter sname=’ 张三’ where sid=’2015001
正确答案:update student set sname=’ 张三’ where sid=’2015001’
12、向学生表student中插入记录:学号(sid)、姓名(sname)、所在系(depart),值为(‘2016001‘,’张红‘,’管理系‘)