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.

screenshot

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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -