SQL查询结果只显示指定的行项目。


举例:只显示查询结果的前5行。


SQL SERVER:select top 5 '列名' from '表名';


ORACLE:select '列名' from '表名' where rownum <=5 ;