题目内容

从表中删除数据可以选择哪些语句( )

A. drop table 表名
B. truncate table 表名
C. delete from 表名
D. truncate from table

查看答案
更多问题

SELECT语句中,用于指定排序方式的关键字是

ASC
B. GROUP BY
C. DESC
D. ORDER BY

阅读下面SQL代码:CREATE TABLE student(id INT(3) PRIMARY KEY AUTO_INCREMENT,name VARCHAR(20) NOT NULL,grade FLOAT,);下面选项中,用于查询表中所有记录信息的SQL语句是

A. SEELCT * FROM student
B. SEELCT id,name FROM student LIMIT 2,3;
C. SEELCT id,name,grade FROM student;
D. SEELCT id,name FROM student;

请选择正确的单表查询基本SQL

A. SELECT * FROM 表名 where 表达式
B. SELECT * FROM 表名 order by 列名
C. SELECT 列1,列2 FROM 表名 group by 列名
D. SELECT 列1,sum(列2) FROM 表名 group by sum(列2) order by 列1

假设有学生表tb_student,请问统计学生总人数,正确的语句是()

A. Select sum(*) from tb_student
B. Select count(*) from tb_student
C. Select count(学号) from tb_student
D. Select max(*) from tb_student

答案查题题库