• 2022-06-08
    下面检索结果一定不是一行的命令:
    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,B,C

    举一反三

    内容

    • 0

      下列语句说法正确的是 A: select * from user limit 2,-1; 检索数据表第3行到结束所有的记录 B: select * from user limit 2,-1; 检索数据表第3行之前的所有记录 C: select * from user limit 2,5; 检索数据表第3-7行记录 D: select * from user limit 2,5; 检索数据表第2-5行记录

    • 1

      ‍数据表如图所示,列出客户订单总金额大于3000的数据,正确的SQL是________‎‍[img=1101x418]1803c6faf3915a8.png[/img]‎ A: SELECT C_ID,SUM(OrderAmount) FROM Orders GROUP BY C_ID HAVING SUM(OrderAmount)>3000 B: SELECT C_ID,SUM(OrderAmount) FROM Orders WHERE SUM (OrderAmoount)>3000 GROUP BY C_ID C: SELECT C_ID,SUM(OrderAmount) FROM Orders WHERE SUM (OrderAmoount)>3000 D: SELECT C_ID,SUM(OrderAmount) FROM Orders GROUP BY C_ID WHERE SUM(OrderAmount)>3000

    • 2

      SQL数据库中查询前3条记录的SQL语句是()。 A: select top 3 from table B: select * from table limit 3 C: select * from table limit 1,3 D: select * from table order 3

    • 3

      以下______语句查询表student中第3条到第10条记录 。 A: SELECT * FROM student LIMIT 2,8; B: SELECT * FROM student LIMIT 2,9; C: SELECT * FROM student LIMIT 3,10; D: SELECT * FROM student LIMIT 3,9;

    • 4

      【单选题】以下语句能返回记录数大于5行的是() A. select * from table limit 5 B. select * from table limit 0,5 C. select * from table limit 5,10 D. select * from table limit 10,5