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

MySQL - CONCAT due campi e usali nella clausola WHERE

Prova questo ::

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