Mysql
 sql >> Database >  >> RDS >> Mysql

Query di ricerca in PHP MySQL

Prova a usare concat:

$q = "SELECT * FROM `members` WHERE `first_name` LIKE :search_string 
OR `last_name` LIKE     :search_string 
OR concat(`first_name` , ' ', `last_name`) LIKE :search_string";