网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

若给出关系Student(S_no,Shame,Sage,S_sex,SD_name,S_add,S_tel),并用SQL语言定义Student关系如下:CREATE Student(S_no CHAR(6), Sname CHAR(30)NOT NULL, Sage CHAR(30), S_sex CHAR(1), SD_name CHAR(20), S_add CHAR(30), S_tel CHAR(20), PRIMARY KEY(S_no));采用(41)向Student中插入记录能被正确地执行。

A.INSERT INTO Smdent(S_no,Sname,Sage,S_sex,SD_name,S_add,S_tel)VALUES('010456','黎敏','18',",",",")

B.INSERT INTO Student(S_no,Sname,Sage,S_sex,S_r)name,S_add,S_tel)VALUES('010456','黎敏','18','男','计算机学院','北京','88661200')

C.INSERT INTO Student(S_no,Sname,Sage,S_sex,SD_name,S_add,S_tel)VALUES(,'黎敏','18','F','计算机学院','北京','88661200')

D.INSERT INTO Student(S_no,Sname,Sage,S_sex,SD_name,S_add,S_tel)VALUES('010456',,'18','F','计算机学院','北京','88661200')


参考答案

更多 “ 若给出关系Student(S_no,Shame,Sage,S_sex,SD_name,S_add,S_tel),并用SQL语言定义Student关系如下:CREATE Student(S_no CHAR(6), Sname CHAR(30)NOT NULL, Sage CHAR(30), S_sex CHAR(1), SD_name CHAR(20), S_add CHAR(30), S_tel CHAR(20), PRIMARY KEY(S_no));采用(41)向Student中插入记录能被正确地执行。A.INSERT INTO Smdent(S_no,Sname,Sage,S_sex,SD_name,S_add,S_tel)VALUES('010456','黎敏','18',",",",")B.INSERT INTO Student(S_no,Sname,Sage,S_sex,S_r)name,S_add,S_tel)VALUES('010456','黎敏','18','男','计算机学院','北京','88661200')C.INSERT INTO Student(S_no,Sname,Sage,S_sex,SD_name,S_add,S_tel)VALUES(,'黎敏','18','F','计算机学院','北京','88661200')D.INSERT INTO Student(S_no,Sname,Sage,S_sex,SD_name,S_add,S_tel)VALUES('010456',,'18','F','计算机学院','北京','88661200') ” 相关考题
考题 设有关系模式Student(Sno, Sname, Sex, Birthday),Course(Cno, Cname, Credit),SC(Sno,Cno, Grade)。若在SQL Server 2000中建有与以上模式对应的关系表,并有如下操作: Ⅰ.定义Sno是Student关系表的主码,定义Cno是Course关系表的主码,定义Sno,Cno是SC关系表的主码 Ⅱ.定义Student关系表Sex列的取值只能为”男,或“女”,定义Course关系表Credit列的取值范围是[1, 4] Ⅲ.在Student关系表的Sname列上建立一个非聚集索引,在Course关系表的Cname列上建立一个非聚集索引- Ⅳ.定义SC关系表的Sno列的取值不能为空,并且其镶一个值必须在Student关系表的Sno列的值集中 以上操作对内模式结构有影响的是A.仅Ⅰ和ⅢB.仅Ⅱ和ⅢC.仅Ⅰ和ⅣD.仅Ⅰ和Ⅱ

考题 由于学号(SN)为00291的学生已毕业,欲在关系“Student”中删除该学生的所有信息,用元组关系演算语言实现应为(53)。A.GET W(Student): Student. SN = 00291' DELETE WB.GET W: Student. SN = 00291'in Student DELETE WC.HOLD W(student): Student. SN = 00291' DELETE WD.HOLD W: Student. SN = 00291'in Student DELETE W

考题 根据SQL标准,要删除表student中所有数据,但不将表student的定义一起删除,下面哪个语句可以适用?()A delete from studentB delete all from studentC delete * from studentD drop table student

考题 若给出关系Student(S_no, Sname, Sage, S_sex, SD_name, S_add, S_tel),并用SQL语言定义Student关系如下: CREATE Student(S_no CHAR(6), Sname CHAR(30)NOT NULL, Sage CHAR(30), S_sex CHAR(1), SD_name CHAR(20), S_add CHAR(30), S_tel CHAR(20), PRIMARY KEY(S_no)); 采用(45)向Student中插入记录能被正确地执行。A.INSERT INTO Student(S_no, Sname, Sage, S_sex, SD_name, S_add, S_tel) VALUES('010456', '黎敏', '18', ", ", ", ")B.INSERT INTO Student(S_no, Sname, Sage, S_sex, SD_name, S_add, S_tel) VALUES('010456', '黎敏', '18', '男', '计算机学院', '北京', '88661200')C.INSERT INTO Student(S_no, Sname, Sage, S_sex, SD_name, S_add, S_tel) VALUES(, '黎敏', '18', 'F', '计算机学院', '北京', '88661200')D.INSERT INTO Student(S_no, Sname, Sage, S_sex, SD_name, S_add, S_tel) VALUES('010456', , '18', 'F', '计算机学院', '北京', '88661200')

考题 在关系SC(student_id,student_name,course_id, grade)中,有student_id,course_id→ gradesmdent_id→student_name关系SC最高达到( )范式。A.不满足B.1NFC.2NFD.3NF

考题 设Student为学生关系,SC为学生选课关系,Sno为学生号,Sname为学生姓名,Cno为课程号,执行下面SQL语句的查询结果是( )。A)选出选修Cl课程的学生信息B)选出选修Cl课程的学生姓名C)选出Student中学生号与SC中学生号相等的信息D)选出Student和SC中的一个关系

考题 要求:1. 按如下类图写出相应数据库建表 sql 脚本。 其中 Student 和 Score 是1 对多的关系,Scroe 和 Course是多对 1 的关系。Student-id: String-name: String-birthday: Date-address: String-phone: String-email: StringScore-student: Student-course: Course-grade: floatCourse-id: String-name: String-description: String

考题 已知有关系“STUDENT”,则关系运算σANE<80(STUDENT)用SQL语句表示为(52)。A.SELECT( * )FROM STUDENT WHERE AVE < 80B.SELECT( * )FROM STUDENT HAVING AVE < 80C.SELECT(AVE)FROM STUDENT WHERE AVE < 80D.SELECT(AVE) FROM STUDENT HAVING AVE < 80

考题 在C++语言中,可以同时定义student和Student两个变量。