php - LIKE using Multiple AND in MySql -
select * name name 'a%' , lower(main_cat)='girl' , lower(sub_cat_url)='indian-girl-names' limit 0,50 i want find record name starting a , and query multiple time. have following data in database no result above query.
the names start capital "a"s. so, try this:
select * name name 'a%' , lower(main_cat)='girl' , lower(sub_cat_url)='indian-girl-names' limit 0,50; note: using limit without order by suspicious , cause unexpected results.

Comments
Post a Comment