I have a table with three fields, FirstName, LastName and Email.
Here\'s some dummy data:
FirstName | LastName | Email Adam West adam@west.c
Look at CONCAT_WS
CONCAT_WS
For example:
CONCAT_WS('',NULL,"TEST STRING","TEST STRING 2")
Yields
TEST STRINGTEST STRING 2
This is easier than constructing IFNULL around everything. You can use an empty string as the separator.
IFNULL