oracle 查询前30条数据



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


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

 oralce

原文地址:https://www.cnblogs.com/slgkaifa/p/7286891.html