如果学生表STUDENT是使用下面的SQL语句创建的: CREATE TABLE STUDENT(SNO C(4)PRIMARY KEY NOT NULL. SN C(8), SEX C(2), AGE N(2)CHECK(AGE>15 AND AGE<25)) 下面的SQL语句中可以正确执行的是( )。
A. INSERT INTO STUDENT(SN,SEX,AGE)VALUES(”王磊”,”男”,20)
B. INSERT INTO STUDENT(SN0,SEX,AGE)VALUES(”S9”,”男”,17)
C. INSERT INTO STUDENT(SEX,AGE)VALUES(”男”,20)
D. INSERT INTO STUDENT(SN0,SN,AGE)VALUES(”S9”,”王磊”,14)
第1题:
如果学生表STUDENT是使用下面的SQL语句创建的 CREATE TABLE STUDENT(SNOC(4)PR1MARY KEY NOTNULL; SNC(8),; SEXC(2),; AGEN(2)CHECK(AGE>15AND AGE<30) 下面的SQI语句中可以正确执行的是 ______。
A.INSERT INTO STUDENT(SNO,SEX,AGE)valueS("S9","男",17)
B.INSERT INTO STUDENT(SNO,SEX,AGE)valueS(“李安琦”,“男”,20)
C.INSERT INTO STUDENT(SEX,AGE)valueS(“男”,20)
D.INSERT INTO STUDENT(SNO,SN)valueS("S9",“安琦”,16)
第2题:
如果学生表STUDENT是使用下面的SQL语句创建的:
CREATE TABLE STUDENT(SNO C(4) PRIMARY KEY NOT NULL,,;
SN C(8),;
SEX C(2),;
AGE N(2) CHECK(AGE>15 AND AGE<30))
下面的SQL语句中可以正确执行的是( )。
A
A.B
B.C
C.D
D.答案
第3题:
将SC和Student表连接起来,显示学生的学号、姓名、课程号、考试分数,不正确的SQL语句是()。
A.Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From SC,Student Where SC.Sno=Student.Sno
B.Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From SC Join Student On SC.Sno=Student.Sno
C.Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From Student Join SC On SC.Sno=Student.Sno
D.Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From SC,Student On SC.Sno=Student.Sno
第4题:
如果学生表STUDENT是使用下面的SQL语句创建的CREATE TABLE STUDENT(SNO C(4)PRIMARY KEY NOT NULL,; SN C(8),; SEX C(2),; AGE N(2)CHECK(AGE>15 AND AGE<30))下面的SQL语句中可以正确执行的是
A.INSERT INTO STUDENT(SNO,SEX,AGE)VALUES(“S9”,“男”,17)
B.INSERT INTO STUDENT(SN,SEX,AGE)VALUES(“李安琦”,“男”,20)
C.INSERT INTO STUDENT(SEX,AGE)VALUES(“男”,20)
D.INSERT INTO STUDENT(SNO,SN)VALUES(“S9”,“安琦”,16)
第5题:
下面的SQL语句也可以用带Join关键词的语句来实现。 Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From SC,Student Where SC.Sno=Student.Sno
第6题:
9、将SC和Student表连接起来,显示学生的学号、姓名、课程号、考试分数,不正确的SQL语句是()。
A.Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From SC,Student Where SC.Sno=Student.Sno
B.Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From SC Join Student On SC.Sno=Student.Sno
C.Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From Student Join SC On SC.Sno=Student.Sno
D.Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From SC,Student On SC.Sno=Student.Sno