Mi chiedevo se sarebbe possibile enumerare le righe restituite. Non in base al contenuto di una colonna, ma solo a un indice intero sequenziale. Per esempio.Come enumerare le righe restituite in SQL?
select ?, count(*) as usercount from users group by age
sarebbe restituire qualcosa lungo le linee:
1 12
2 78
3 4
4 42
è per https://data.stackexchange.com/
Che tipo di DBMS stai utilizzando? – BenV
@benv: è per http://odata.stackexchange.com/ – SilentGhost
@SilentGhost quindi i tag rilevanti potrebbero essere stati [tag: tsql] e [tag: dataexplorer]. Ma ora che ci sono risposte mysql e oracle, è un po 'tardi per cambiarlo. –