I have a table Person
with fields LastName
, FirstName
and MiddleName
.
I would wanted to display in datatable as one column the LastName, FirstName MiddleName
Is it possible? How?
I have a table Person
with fields LastName
, FirstName
and MiddleName
.
I would wanted to display in datatable as one column the LastName, FirstName MiddleName
Is it possible? How?
I believe you can do SELECT CONCAT(LastName, ", ", FirstName, " " , MiddleName ) as Name FROM Person
. This will concat all names in one column named Name. Second blank " " is to set a gap between First and Middle Name.