日期:2014-05-17  浏览次数:20799 次

oracle 里面能否实现如sqlserver中在查询的时候加一个自增列
如题,比如类似于sqlserver 中

select id=identity(int,1,1) ,[Name]into tt
 from HumanResources.Department

oracle 中有这种用法么?

------解决方案--------------------
select rownum,val from test;
------解决方案--------------------
利用伪列:rownum