Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql counter column

SELECT my_first_column, my_second_column,
    ROW_NUMBER() OVER (ORDER BY my_order_column) AS Row_Counter
FROM my_table
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #counter #column
ADD COMMENT
Topic
Name
8+9 =