This article is tagged with:
Sql counter column
and mysql
sql counter column
SELECT my_first_column, my_second_column,
ROW_NUMBER() OVER (ORDER BY my_order_column) AS Row_Counter
FROM my_table