Posted By

ginoplusio on 12/06/08


Tagged

mysql sql variables counter


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jamesming


MYSQL add counter in query


 / Published in: SQL
 

  1. SET @N = 0;
  2. SELECT @N := @N +1 AS numero, nome,stipendio,genere FROM persone;

Report this snippet  

You need to login to post a comment.