Automatic row numeration


/ Published in: MySQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. SELECT @row := @row + 1, _HERE_TABLE_NAME_ . *
  2. FROM `_HERE_TABLE_NAME_`
  3. SELECT @row := 0
  4. ) AS tmp

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.