下面检索结果一定不是一行的命令: A: select distinct * from orders ; B: select * from orders limit 1,2; C: select top 1 * from orders; D: select * from orders limit 1;
下面检索结果一定不是一行的命令: A: select distinct * from orders ; B: select * from orders limit 1,2; C: select top 1 * from orders; D: select * from orders limit 1;
以下可以正确运行的查询语句有( ) A: select * from user ; B: select * from user where username =’李四’; C: select * from user where 1=1; D: select distinct * from user;
以下可以正确运行的查询语句有( ) A: select * from user ; B: select * from user where username =’李四’; C: select * from user where 1=1; D: select distinct * from user;
写出条件查询“表1 里的字段1的id是多少”() A: select * from 表1 where字段1=“值” B: select id from 表1 where字段1=“值” C: select id from 字段1 where表1=“值” D: select id from 表1
写出条件查询“表1 里的字段1的id是多少”() A: select * from 表1 where字段1=“值” B: select id from 表1 where字段1=“值” C: select id from 字段1 where表1=“值” D: select id from 表1
以下语句不正确的是( ) A: select * from emp; B: select ename,hiredate,sal from emp; C: select * from emp order deptno; D: select * from where deptno=1
以下语句不正确的是( ) A: select * from emp; B: select ename,hiredate,sal from emp; C: select * from emp order deptno; D: select * from where deptno=1
查询“学生”表中“学号 char(10)”尾字符是"1"的错误命令是( )。 A: SELECT * FROM 学生 WHERE 学号 LIKE '_1' B: SELECT * FROM 学生 WHERE 学号 LIKE '%[1]' C: SELECT * FROM 学生 WHERE 学号 LIKE '%1' D: SELECT * FROM 学生 WHERE RIGHT(学号,1)='1'
查询“学生”表中“学号 char(10)”尾字符是"1"的错误命令是( )。 A: SELECT * FROM 学生 WHERE 学号 LIKE '_1' B: SELECT * FROM 学生 WHERE 学号 LIKE '%[1]' C: SELECT * FROM 学生 WHERE 学号 LIKE '%1' D: SELECT * FROM 学生 WHERE RIGHT(学号,1)='1'
下列查询中,属于相关子查询的有()。 A: SELECT * FROM student WHERE sno IN (SELECT sno FROM sc WHERE cno='1'); B: SELECT sno, cno FROM SC x WEHRE grade>=(SELECT AVG(grade) FROM SC y WHERE y.sno = x.sno); C: SELECT sname FROM student WHERE EXISTS(SELECT * FROM sc WHERE sno=student.sno AND cno='1'); D: SELECT sname FROM student WHERE NOT EXISTS(SELECT * FROM course WHERE NOT EXISTS(SELECT * FROM sc WHERE sc.sno=student.sno AND sc.cno=course.cno));
下列查询中,属于相关子查询的有()。 A: SELECT * FROM student WHERE sno IN (SELECT sno FROM sc WHERE cno='1'); B: SELECT sno, cno FROM SC x WEHRE grade>=(SELECT AVG(grade) FROM SC y WHERE y.sno = x.sno); C: SELECT sname FROM student WHERE EXISTS(SELECT * FROM sc WHERE sno=student.sno AND cno='1'); D: SELECT sname FROM student WHERE NOT EXISTS(SELECT * FROM course WHERE NOT EXISTS(SELECT * FROM sc WHERE sc.sno=student.sno AND sc.cno=course.cno));
以下语句不正确的是( ) A: select * from emp B: select ename,hiredate,sal from emp C: select * from emp order deptno D: select * from where deptno=1 and sal<300
以下语句不正确的是( ) A: select * from emp B: select ename,hiredate,sal from emp C: select * from emp order deptno D: select * from where deptno=1 and sal<300
以下命令可以查询date_records中约会成功匹配(match=1)次数的是() A: SELECT sum(match) FROM date_records; B: SELECT count() FROM date_records WHERE match=1; C: SELECT sum(id) FROM date_records WHERE match=1; D: SELECT match FROM date_records WHERE match=1;
以下命令可以查询date_records中约会成功匹配(match=1)次数的是() A: SELECT sum(match) FROM date_records; B: SELECT count() FROM date_records WHERE match=1; C: SELECT sum(id) FROM date_records WHERE match=1; D: SELECT match FROM date_records WHERE match=1;
以下命令可以查询date_records中约会成功匹配(match=1)次数的是( )。 A: SELECT sum(id) FROM date_records WHERE match=1; B: SELECT count(*) FROM date_records WHERE match=1; C: SELECT sum(match) FROM date_records; D: SELECT match FROM date_records WHERE match=1;
以下命令可以查询date_records中约会成功匹配(match=1)次数的是( )。 A: SELECT sum(id) FROM date_records WHERE match=1; B: SELECT count(*) FROM date_records WHERE match=1; C: SELECT sum(match) FROM date_records; D: SELECT match FROM date_records WHERE match=1;
查询学生表中学号(字符型,长度为2)末尾字符是"1"的错误命令是( ). A: SELECT * FROM 学生 WHERE SUBSTR(学号,2,1)="1" B: SELECT * FROM 学生 WHERE "1" $ 学号 C: SELECT * FROM 学生 WHERE SUBSTR(学号,2)="1" D: SELECT * FROM 学生 WHERE RIGHT(学号,1)="1"
查询学生表中学号(字符型,长度为2)末尾字符是"1"的错误命令是( ). A: SELECT * FROM 学生 WHERE SUBSTR(学号,2,1)="1" B: SELECT * FROM 学生 WHERE "1" $ 学号 C: SELECT * FROM 学生 WHERE SUBSTR(学号,2)="1" D: SELECT * FROM 学生 WHERE RIGHT(学号,1)="1"