下面选项中,用于将表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;
下面选项,用于删除表中记录的SQL语句是
A. DELETE student ,where id=11;
B. DELETE FROM student where id=11;
C. DELETE INTO student where id=11;
DELETE student where id=11;