Numero progressivo di righe

macchiavelli.ivan

Utente Attivo
7 Dic 2012
67
0
0
Salve non riesco a creare una tabella dove possa avere il numero di righa.

Ecco la mia query
SELECT ROW_NUMBER() OVER (ORDER BY nome, cognome) AS RowNumber, * FROM id.maestri

Ed ecco il messaggio d'errore:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(ORDER BY nome, cognome) AS RowNumber, * FROM id.maestri LIMIT 0, 30' at line 1

Qualcuno puo aiutarmi?
Grazie
 

Discussioni simili