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

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

根据SQL标准,增加一条记录到表student,学号sno是11301,姓名sname是“snoopy”,年龄age是20。其中student表中包括学号、姓名、年龄、籍贯、系别等属性,并且属性除sno外皆可取空值。下面哪条是参考的?()

A insert into student values(sno=11301, sname=’snoopy’, age =20)

B insert into student(sno,sname,age) values(11301,’snoopy’,20)

C insert into student set sno=11301, sname=’snoopy’, age = 20

D insert into student values (11301, ’snoopy’, 20)


参考答案

更多 “ 根据SQL标准,增加一条记录到表student,学号sno是11301,姓名sname是“snoopy”,年龄age是20。其中student表中包括学号、姓名、年龄、籍贯、系别等属性,并且属性除sno外皆可取空值。下面哪条是参考的?()A insert into student values(sno=11301, sname=’snoopy’, age =20)B insert into student(sno,sname,age) values(11301,’snoopy’,20)C insert into student set sno=11301, sname=’snoopy’, age = 20D insert into student values (11301, ’snoopy’, 20) ” 相关考题
考题 ( 32 ) 设有学生信息关系 STUDENT ( sno , sname , sex , age , dept ) 。 “ 查找信息系 ( IS 系 ) 中年龄小 于20 岁的学生的姓名 ” ,该操作正确的关系代数表达式是Ⅰ . π sname ( σ dept= ’ IS ’ ∧ age20( STUDENT ))Ⅱ . σ dept= ’ IS ’ ∧ age20 ( π sname ( STUDENT ))Ⅲ . σ sname ( π dept= ’ IS ’ ∧ age20( STUDENT ))A )仅 ⅠB )仅 ⅡC ) Ⅰ 和 ⅡD ) Ⅱ 和 Ⅲ

考题 根据SQL标准,下面哪句语句能够找出年龄最小的同学?其中age为学生表student中的年龄字段,sno为学生的学号。()A select max(age) from studentB select sno from student where age = max(age)C select sno from student having age = max(age)D select sno from student a where a.age

考题 设有学生信息关系STUDENT(sno, sname, sex, age, dept)。“查找信息系(IS系)中年龄小于20岁的学生的姓名”,该操作正确的关系代数表达式是______。Ⅰ.πsname(σdept='IS'∧age<20(STUDENT))Ⅱ.σdept='IS'∧age<20(πsname(STUDENT))Ⅲ.σsname(πdept='IS'∧age<20(STUDENT))A.仅ⅠB.仅ⅡC.Ⅰ和ⅡD.Ⅱ和Ⅲ

考题 对于学生信息表STUDENT(SNO, SNAME,SEX,AGE,DEPT)(STUDENT由学号SNO、姓名SNAME、性别SEX、年龄AGE、所在系DEPT 5个属性组成,其中SNO为主码),求年龄20~23岁之间的学生姓名和年龄,正确的语句是( )。A.SELECT SNAME,AGE FROM STUDENT WHERE AGE20 AND AGE23B. SELECT*FROM STUDENT WHERE AGE BETWEEN 20 AND 23C.SELECT SNAME,AGE FROM STUDENT WHERE AGE BETWEEN 20 AND 23D.以上均不正确

考题 对于学生信息表S(SNUMBER,SNAME,SEX,AGE,DEPT)(STUDENT 由学号 SNO,姓名SNAME,性别SEX,年龄AGE,所在系DEPT5个属性组成,其中SNUMBER为主码),求年龄20~23岁之间的学生姓名和年龄,正确的语句是( )。A.SELECT SNAME,AGE FROM S WHERE AGE>20 AND AGE<23B.SELECT SNAME,AGE FROM S WHERE AGE BETWEEN 20 AND 23C.SELECT *FROM S WHERE. AGE BETWEEN 20 AND 23D.以上均不正确

考题 在学生选课数据库中有学生表student(sno,sname,ssex,sage,sdept),课程表course(cno,cname)及学生选课表sc(sno,cno,grade),其中sno是学号,sname是姓名,ssex是性别,sage是年龄,sdept是系别,cno是课程号,cname是课程名,grade是成绩。以下()SQL语句可以实现查询“CS”系并且年龄超过20岁的学生姓名。A.select sname from student where sdept=’CS‘ and sage>20B.select sname from student where sdept=’CS‘ intersect select sname from student where sage>20C.select sname from student where sdept=’CS‘ except select sname from student where sage<=20D.select sname from student where sdept=’CS‘ union select sname from student where sage>20

考题 8、学生表student包含学号sno、学生姓名sname、性别sex、年龄age、所在院系dept、籍贯native等字段,其中age为整型,其余字段均为字符型。现插入一条计算机学院学生的记录,学号为s320078,姓名为张强,性别为男,年龄为20,下列语句错误的是________。A.INSERT INTO tb_student (sno, sname, sex, age, dept, native) VALUES('s320078', '张强','男',20, '计算机');B.INSERT INTO tb_student (sno, sname, sex, age, dept) VALUES('s320078', '张强','男',20, '计算机');C.INSERT INTO tb_student VALUES('s320078', '张强','男',20, '计算机',null);D.INSERT INTO tb_student (dept, sno, sname, sex, age) VALUES('计算机', 's320078', '张强','男',20);

考题 学生表student包含学号sno、学生姓名sname、性别sex、年龄age、所在院系dept、籍贯native等字段,其中age为整型,其余字段均为字符型。现插入一条计算机学院学生的记录,学号为s320078,姓名为张强,性别为男,年龄为20,下列语句错误的是________。A.INSERT INTO tb_student (sno, sname, sex, age, dept, native) VALUES('s320078', '张强','男',20, '计算机');B.INSERT INTO tb_student (sno, sname, sex, age, dept) VALUES('s320078', '张强','男',20, '计算机');C.INSERT INTO tb_student VALUES('s320078', '张强','男',20, '计算机',null);D.INSERT INTO tb_student (dept, sno, sname, sex, age) VALUES('计算机', 's320078', '张强','男',20);

考题 在学生选课数据库中有学生表student(sno,sname,ssex,sage,sdept),课程表course(cno,cname)及学生选课表sc(sno,cno,grade),其中sno是学号,sname是姓名,ssex是性别,sage是年龄,sdept是系别,cno是课程号,cname是课程名,grade是成绩。以下()SQL语句可以实现查询“CS”系并且年龄超过20岁的学生姓名。A.select sname from student where sdept=’CS‘ except select sname from student where sage<=20B.select sname from student where sdept=’CS‘ intersect select sname from student where sage>20C.select sname from student where sdept=’CS‘ and sage>20D.select sname from student where sdept=’CS‘ union select sname from student where sage>20