Search for usernames over character limit?

Joe Link

Well-known member
Licensed customer
What's the best way for me to get a list of users with usernames over 14 characters?
 
There is no option to do that in the front end or ACP, you would have to interrogate the database directly using LENGTH.
Code:
SELECT username FROM `xf_user` WHERE LENGTH(username) > 14
 
Back
Top Bottom