-3

I currently have them separated but would prefer to have both together in one column.

Mnb
  • 3
  • 1
  • If you want to do this in a select statement, use one of the answers below. To permanently change your table, see this answer: http://stackoverflow.com/questions/5774532/mysql-combine-two-columns-and-add-into-a-new-column – user681574 Mar 16 '17 at 04:27

2 Answers2

0
SELECT CONCAT(given, ' ', surname) AS fullname FROM tablename

or for null safe,

SELECT CONCAT_WS(' ', given, surname)  AS fullname FROM tablename
tatskie
  • 405
  • 1
  • 7
  • 16
0

you can concatenate them using:

select CONCAT(given,' ',surname) as fullname;
Rush
  • 1