How do I select all the columns from a table, plus additional columns like ROWNUM?

前端 未结 3 1408
日久生厌
日久生厌 2020-11-28 06:19

In Oracle, it\'s possible to do a SELECT statement that returns the row number as a column in your result set.

For example,

SELECT rownu         


        
3条回答
  •  难免孤独
    2020-11-28 07:02

    Unfortuantely, i dont think therei s a way to do it, easiest is probably inner join with itself with an inline table of id,count(*), and put an outer select statement

提交回复
热议问题