I've been reading some question and I realized that REGEXP or RLIKE doesn't support the UPDATE function, so here's the deal:
I got a table called email_accounts
and a column login
, in that column there's some data who have some capital letters in the middle of e-mail address, something like this: _clientNAME@domain.com_
. All I want is get the capital letters and change to lowercase, considering that the capital letter can be in anywhere before @domain.com
Here's the SELECT that I used: SELECT * FROM contas_emails WHERE CAST(login AS BINARY) RLIKE '[A-Z]';
Thanks!