Si queremos devolver una fila con el numero de linea , en una consulta de mysql podemos usar este gran truco que encontre como no en Starck Overflow 🙂

SELECT @rownum:[email protected]+1 ‘nro’,  nombre 
FROM tabla t, (SELECT @rownum:=0) r

Por admin

Deja una respuesta

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock