oracle 查询前30条数据
时间:2022-03-15 03:28
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
时间:2022-03-15 03:28
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