oracle 查询前30条数据

时间:2014-06-08 09:58:47   收藏:0   阅读:318


select * from (select a.*,rownum as rn from tetm_ad_type  a) b where b.rn<30


--表名不能用as 字段取别名,直接在表名后面跟一个newName 就算别名了,字段 名可以用as 取别名。  其实我都是乱写的。

 oralce

oracle 查询前30条数据,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!