Question : mysql concatenate two columns into one
Answered by : snippets
SELECT concat(first_column, ' ', second_column) from table_name
Source : | Last Update : Mon, 01 Mar 21
Question : mysql concatenate columns
Answered by : apoorv-shrivastava
SELECT CONCAT(first_name, ' ', last_name) AS 'Name', dept FROM users;
Source : https://gist.github.com/apoorv-x12/4781444c1f458bb1a68fa821d1efadd8 | Last Update : Fri, 30 Jul 21
Question : mysql concat and use as where column
Answered by : jessica-koekemoer
select * from table where concat_ws(' ',first_name,last_name)
like '%$search_term%';
Source : https://stackoverflow.com/questions/303679/using-mysql-concat-in-where-clause | Last Update : Wed, 11 Nov 20