TOP 子句用于规定查询出显示多少条数据
基本语法: select top number | percent * from tablename (number是数字 ,percent 是百分比)
示例:
1:查询出表 table1中前5条数据
select top 5 * from table1
2:查询出表 table1中前30%条数据
select top 30 percent from table1
TOP 子句用于规定查询出显示多少条数据
基本语法: select top number | percent * from tablename (number是数字 ,percent 是百分比)
示例:
1:查询出表 table1中前5条数据
select top 5 * from table1
2:查询出表 table1中前30%条数据
select top 30 percent from table1