Answer the question
In order to leave comments, you need to log in
How to add numbered results to select?
I have a table with no id column.
How can I add an id column without using DDL statements. I need to do this in a select call
. I know that window functions can be used. For example:
ROW_NUMBER() OVER (ORDER BY name) AS id
But here it is necessary to specify sorting, I just want the id column to be added, which would go in order from the table that I already have.
Answer the question
In order to leave comments, you need to log in
I just want to add an id column that would go in order from the table that I already have.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question