题目内容

下列选项中,能够一次性向student表中添加三条记录的SQL语句是

A. INSERTINTOstudentVALUES(6,‘lilei',99);(7,'hanmeimei';,100);(8,'poly',40.5);
B. INSERTINTOstudentVALUES(6‘lilei',99)(7,'hanmeimei',100)(8,'poly',40.5);
C. INSERTINTOstudentVALUES(6,‘lilei',99),(7,'hanmeimei,100),(8,'poly',40.5);
D. INSERTINTOstudentVALUES(6,‘lilei',99)VALUES(7,'hanmeimei,100)VALUES(8,'poly',40.5);

查看答案
更多问题

下面选项中,用于将表student中字段grade值更新为80的SQL语句是

ALTERTABLEstudentsetgrade=80;
B. UPDATEstudentsetgrade=80wheregrade=80;
C. UPDATEstudentsetgrade=80wheregrade<=80;
D. UPDATEstudentsetgrade=80;

下面选项,语句DELETE FROM student where name=’itcast’;的作用是

A. 只能删除name=’itcast’的一条记录
B. 删除name=’itcast’的全部记录
C. 只能删除name=’itcast’的最后一条记录
D. 以上说法都不对

下面选项中,用于删除表中记录的语法格式,正确的是

A. DELETE表名 [WHERE 条件表达式];
B. DELETE FROM 表名 [WHERE 条件表达式];
C. DROP 表名 [WHERE 条件表达式];
DELETE INTO 表名 [WHERE 条件表达式];

更新student表id=1的记录,name更新值为”youjun”,grade更新值为98.5,下列选项中,能够完成上述功能的SQL语句是()

A. UPDATE student set name=’youjun’ grade=98.5 where id=1;
B. UPDATE student set name=’youjun’, grade=98.5 where id=1;
C. UPDATE FORM student set name=’youjun’ ,grade=98.5 where id=1;
D. UPDATE student Values name=’youjun’ grade=98.5 where id=1;

答案查题题库