select * top 2 from sale order by qty;提示top附近有错误

解决方案 »

  1.   

    select top 2   *  from sale order by qty
      

  2.   

    select top 2 * from sale order by qty
      

  3.   

    select top 2 * from sale order by qty  
      

  4.   

    select top (2) *  from sale order by qty
      

  5.   

    select top 2 * from sale order by qty;
      

  6.   

    select top 2 * 
    from sale
    order by qty
      

  7.   

    SELECT 子句
    指定由查询返回的列。语法
    SELECT [ ALL | DISTINCT ]
        [ TOP n [ PERCENT ] [ WITH TIES ] ]
        < select_list >< select_list > ::=    {    * 
            | { table_name | view_name | table_alias }.*
            |     { column_name | expression | IDENTITYCOL | ROWGUIDCOL }
                [ [ AS ] column_alias ]
            | column_alias = expression
        }    [ ,...n ]