Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

MySQL - CONCAT dois campos e use-os na cláusula WHERE


Tente isso::
SELECT CONCAT_WS(' ', first_name, last_name) AS name FROM `users`
WHERE CONCAT_WS(' ', first_name, last_name) LIKE "%John Doe%"