I have 3 fields in 1 table with data like this:
id | firstName | lastName
1 | Budi | Arsana
and I want to execute a query to create the following output:
id | fullName
1 | Budi Arsana
Notice that the output is combining the field firstName and lastName into fullName
Is this possible?
CONCAT()them with a space in between:Or use
CONCAT_WS()if you had more than two fields to join: