题目内容

下面选项,用于排序的关键字是()

A. GROUP BY
B. ORDER BY
C. HAVING
D. WHERE

查看答案
更多问题

下面选项,对字段进行排序时,默认采用的排序方式是()

ASC
B. DESC
C. ESC
DSC

向表中name字段添加值为youjun,grade字段值为55,的正确SQL语句是() (多选)

A. INSERT INTO student(name, grade)VALUES('youjun', 55);
B. INSERT INTO student(grade,name)VALUES(55,'youjun');
C. INSERT INTO student(‘grade’,’name’)VALUES(55,'youjun');
D. INSERT INTO student(grade,’name’)VALUES(55,”youjun”);

阅读下面代码: create table user( id varchar(32), name varchar(50) ); insert into user(name) values('jack'); 关于上述sql语句的描述,正确的是() (多选)

A. 执行当前sql语句将产生错误
B. 添加一个记录,name字段的值为jack
C. 添加一个记录,id字段的值为null
D. 添加一个记录,id字段的值为空串

下面选项中,可以清空表数据的SQL语句是()(多选)

A. delete from user;
B. drop from user;
C. truncate table user;
D. delete from user where 1=1;

答案查题题库