Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql incrementation

SET @counter := 0;
SELECT
	col_name,
    @counter := @counter+1 as counter
FROM table_name
 
PREVIOUS NEXT
Tagged: #mysql #incrementation
ADD COMMENT
Topic
Name
4+7 =