Buongiorno a tutti,
dovrei tirare il record con id massimo. Ho fatto una query di questo tipo:

SELECT COLLATION_NAME, CHARACTER_SET_NAME, ID, IS_DEFAULT, IS_COMPILED, SORTLEN
FROM information_schema.COLLATIONS
where SORTLEN=(select max(SORTLEN) from information_schema.COLLATIONS);



Funziona, ma non mi permette di eseguire una query più semplice :

SELECT COLLATION_NAME, CHARACTER_SET_NAME, ID, IS_DEFAULT, IS_COMPILED, SORTLEN
FROM information_schema.COLLATIONS
where SORTLEN=max(SORTLEN) ;

Avete una soluzione migliore????