How is the result of %ROWCOUNT
displayed in the SQL statement.
Example
Select top 10 * from myTable.
I would like the results to have a rowCount
for each row returned in the result set
Ex
+----------+--------+---------+
|rowNumber |Column1 |Column2 |
+----------+--------+---------+
|1 |A |B |
|2 |C |D |
+----------+--------+---------+
There are no any simple way to do it. You can add Sql Procedure with this functionality and use it in your SQL statements. For example, class:
and then, you can use it in this way:
You will get something like below