In response to another question here on stackoverflow (How do you select every n-th row from mysql), someone supplied this answer:
SELECT * FROM ( SELECT @row := @row +1 AS rownum, [column name]
FROM ( SELECT @row :=0) r, [table name] ) ranked WHERE rownum % [n] = 1
Could someone provide or point me to more information about the syntax usage here. I'm not familiar with the use of := ?
(I'm not able to ask for a further explanation in the comments due to points.)
Thanks.