top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

How to Concatenate two fields in MySql?

0 votes
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
Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.