第1题:
已知关系:学生(学号,姓名,年龄),如果按年龄降序列出所有学生,并且相同年龄的学生按姓名升序排列。则排序子句应该是( )。
A.ORDER BY年龄,姓名
B.ORDER BY姓名,年龄
C.ORDER BY年龄DESC,姓名
D.ORDER BY姓名,年龄DESC
第2题:
连接MySQL后选择需要的数据库DB_NAME?以下哪些方法是对的()
A、连接后用USEDB_NAME选择数据库
B、连接后用SETDB_NAME选择数据库
C、用mysql-hhost-uuser-pDB_NAME连接数据库
D、用mysql-hhost-uuser-p-TDB_NAME连接数据库
第3题:
A.public Person(){}
B.public Person(String name,int age) { this.name = name; this.age = age; }
C.public Person(int age,String name) { this.age = age; this.name = name; }
D.public Person(String name) { this.name = name; }
第4题:
连接MySQL后选择需要的数据库DB_NAME?以下哪些方法是对的()
第5题:
现有学生住处表Student_info,其中包括姓名(stu_name),学号(stu_id),成绩(stu_grade)。我们需要查询成绩为80分的学生姓名,要求结果按照学号降序排列。下面查询语句正确的是()。
第6题:
Evaluate these two SQL statements: SELECT last_name, salary , hire_date FROM EMPLOYEES ORDER BY salary DESC; SELECT last_name, salary, hire_date FROM EMPLOYEES ORDER BY 2 DESC; What is true about them?()
第7题:
SORT BY age ASC, last_name
SORT BY age DESC, last_name
ORDER BY age DESC, last_name
ORDER BY age ASC, last_name
第8题:
ORDER BY DESC NAME
ORDER BY NAME DESC
ORDER BY ASC NAME
ORDER BY NAME ASC
第9题:
ORDER BY DESC NAME
ORDER BY NAME DESC
ORDER BY ASC NAME
ORDER BY NAME ASC
第10题:
SELECT stu_name FROM student_info Where stu_grade=80 ORDER BY stu_id ASC;
SELECT stu_name FROM student_info WHERE stu_grade=80 ORDER BY stu_id DESC;
SELECT stu_id,stu_name FROM student_info WHERE stu_grade=80 ORDER BY stu_name ASC;
SELECT stu_name FROM student_info WHERE stu_grade LIKE 80 ORDER BY stu_id DESC;
第11题:
Select name as’姓名’from table
Select name as姓名from table where id=1
Sleect name=姓名from table姓名=names(正确答案)
Select names姓名from table
第12题:
SORT BY age ASC, last_name
SORT BY age DESC, last_name
ORDER BY age DESC, last_name
ORDER BY age ASC, last_name
第13题:
MySQL中用DROP语句可删除数据库和数据表,以下哪句是正确的语法?()
A、DROPTABLEtable_name1
B、DROPTABLEtable_name1,table_name2
C、DROPTABLEIFEXISTStable_name1
D、DROPDATABASEDBname1
第14题:
Given the following query:SELECT last_name, first_name, age, hire_date FROM employee WHERE age >40Which of the following clauses must be added to return the rows sorted by AGE, oldest first, and by LAST_NAME, from A to Z?()
A.SORT BY age ASC, last_name
B.SORT BY age DESC, last_name
C.ORDER BY age DESC, last_name
D.ORDER BY age ASC, last_name
第15题:
Given the following query:SELECT last_name, first_name, age, hire_date FROM employee WHERE age > 40Which of the following clauses must be added to return the rows sorted by AGE, oldest first, and by LAST_NAME, from A to Z?()
第16题:
按照姓名升序排列()。
第17题:
Evaluate these two SQL statements: SELECT last_name, salary , hire_date FROM EMPLOYEES ORDER BY salary DESC; SELECT last_name, salary , hire_date FROM EMPLOYEES ORDER BY 2 DESC; What is true about them?()
第18题:
Evaluate these two SQL statements: SELECT last_name, salary , hire_date FROM EMPLOYEES ORDER BY salary DESC; SELECT last_name, salary, hire_date FROM EMPLOYEES ORDER BY 2 DESC; What is true about them? ()
第19题:
连接后用USEDB_NAME选择数据库
连接后用SETDB_NAME选择数据库
用mysql-hhost-uuser-pDB_NAME连接数据库
用mysql-hhost-uuser-p-TDB_NAME连接数据库
第20题:
SORT BY age ASC, last_name
SORT BY age DESC, last_name
ORDER BY age DESC, last_name
ORDER BY age ASC, last_name
第21题:
SORT BY age ASC, last_name
SORT BY age DESC, last_name
ORDER BY age DESC, last_name
ORDER BY age ASC, last_name
第22题:
Select name as’姓名’from table
Select name as姓名from table where id=1
Sleect name=姓名from table姓名=names(正确答案)
Select names姓名from table
第23题:
连接后用USEDB_NAME选择数据库
连接后用SETDB_NAME选择数据库
用mysql-hhost-uuser-pDB_NAME连接数据库
用mysql-hhost-uuser-p-TDB_NAME连接数据库
第24题:
连接后用USEDB_NAME选择数据库
连接后用SETDB_NAME选择数据库
用mysql-hhost-uuser-pDB_NAME连接数据库
用mysql-hhost-uuser-p-TDB_NAME连接数据库