zoukankan      html  css  js  c++  java
  • top 命令SQLServer-sybase-oracle

    SQLServer:

    select top 10 * from tablename;

    select top 10 percent from tablename;

    select * from tablename limit 10;

    SYBASE:

    select top 10 * from tablename;

    ORACLE:

    oracle中无top命令,可使用以下语句查询前N行记录:

    select * from table_name where rownum<=10;

  • 相关阅读:
    豆豆
    艺术家
    姐姐
    书名与歌名
    MySQL
    杂文
    武侠
    青年诗人
    那些歌
    传世
  • 原文地址:https://www.cnblogs.com/rusking/p/3954747.html
Copyright © 2011-2022 走看看