top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to Concatenate two fields in MySql?

0 votes
472 views
How to Concatenate two fields in MySql?
posted Jul 16, 2014 by Amanpreet Kaur

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes

Try this
SELECT CONCAT (first field, 'connector for example -', second field) from table

answer Jul 17, 2014 by Vimal Kumar Mishra
0 votes

In MySQL CONCAT function is used to concatenate two strings to form a single string

Synatx : SELECT CONCAT(column1,column2) FROM tblname.
Ex : SELECT CONCAT(first_name,last_name) FROM employee

answer Jul 17, 2014 by Karamjeet Singh
...