MySQL Problem!
#1

hi...I need help!

when I want to look for a nick in the MySQL R41-4 database..
"SELECT * FROM `users` WHERE `user` = '%e' LIMIT 1"
when doing a scan, if there is a nick,in small letters ...
but on the basis there is not the word in small letters, only in big letters... then it appears in large letters...
how can I fix this problem?
Reply
#2

Sorry I don't quite understand your question, to clarify are you trying to return the nickname only if it is lower case (small letters)?
Reply
#3

you can do something like this:

Код:
SELECT LOWER(*) FROM users WHERE user = '%e' LIMIT 1
this will return everything in lowercase
Reply
#4

Quote:
Originally Posted by wallee
Посмотреть сообщение
you can do something like this:

Код:
SELECT LOWER(*) FROM users WHERE user = '%e' LIMIT 1
this will return everything in lowercase
my send error..

[11/25/17 04:31:58] [plugins/mysql] error #1064 while executing query "SELECT LOWER(*) FROM `users` WHERE `user` = '[MD]_Shift' LIMIT 1": You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*) FROM `users` WHERE `user` = '[MD]_Shift' LIMIT 1' at line 1
Reply
#5

Quote:
Originally Posted by MEW273
Посмотреть сообщение
Sorry I don't quite understand your question, to clarify are you trying to return the nickname only if it is lower case (small letters)?
nick check, nick examples: SHIFT or Shift
then if it is saved in small letters and will be the first in the press, I will check nick: shift
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)