Puoi utilizzare CHAR_LENGTH()
funzione:
ORDER BY CHAR_LENGTH( column )
Nota che CHAR_LENGTH() funziona anche per stringhe Unicode, dove LENGTH() va bene per il latino ma può dare risultati inaspettati con Unicode:
Puoi utilizzare CHAR_LENGTH()
funzione:
ORDER BY CHAR_LENGTH( column )
Nota che CHAR_LENGTH() funziona anche per stringhe Unicode, dove LENGTH() va bene per il latino ma può dare risultati inaspettati con Unicode: