Dovresti specificare il tuo database, in MySQL ad esempio c'è la funzione LOWER(str)