G
Ganesh Ganesh
Hi How to find the resut by passing string as parameters in clause of
mysql query
For example
arr = ['t','a']
@user = User.findall,:conditions=>["firstname IN(#{arr.join(',')})"])
it is executing like
select * from users where firstname IN('t,a')
it returns 0 rows
Plz reply if anybody knows solution
mysql query
For example
arr = ['t','a']
@user = User.findall,:conditions=>["firstname IN(#{arr.join(',')})"])
it is executing like
select * from users where firstname IN('t,a')
it returns 0 rows
Plz reply if anybody knows solution