Answers for "concatenate 2 columns in mysql"

2

mysql concatenate two columns into one

SELECT concat(first_column, ' ', second_column) from table_name
Posted by: Guest on February-22-2021
0

mysql concat and use as where column

select * from table where concat_ws(' ',first_name,last_name) 
like '%$search_term%';
Posted by: Guest on November-04-2020
0

how to join more then 2 column in mysql

SELECT
  s.last_name, s.first_name,
  p.course_code, p.status, p.amount
FROM enrollment e
JOIN student s
  ON s.id=e.student_id
JOIN payment p
  ON p.course_code=e.course_code
    AND p.student_id=e.student_id;
Posted by: Guest on April-10-2021

Code answers related to "concatenate 2 columns in mysql"

Browse Popular Code Answers by Language