how to search for exact string in Ruby -


what ruby code equivalent following mysql query? i'm trying search exact match of string eg.'main' , 'main' should treat different.

select userid sys_users binary userid='main' 

it's like:

sysuser.select('userid').where('binary userid=?', 'main') 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -