Hem / Tips & tricks
SELECT (SELECT COUNT(*) FROM shopproduct p2 WHERE p2.productid <= e.productid) AS rownumber, productid, productnameFROM shopproduct eORDER BY productid