Jump to content

CONCAT


unemployment

Recommended Posts

Actually, I just noticed that there are only two values in there. You can still use CONCAT_WS(), or you can just throw a space between the two values in CONCAT(). I tend to prefer the _WS version for retrieving more than 2 values unless the separator will be changing.

 

CONCAT(`users`.`firstname`, ' ', `users`.`lastname`)

Link to comment
https://forums.phpfreaks.com/topic/225699-concat/#findComment-1165344
Share on other sites

Actually, I just noticed that there are only two values in there. You can still use CONCAT_WS(), or you can just throw a space between the two values in CONCAT(). I tend to prefer the _WS version for retrieving more than 2 values unless the separator will be changing.

 

CONCAT(`users`.`firstname`, ' ', `users`.`lastname`)

 

Thanks, that worked. Did you get my PMs today?

Link to comment
https://forums.phpfreaks.com/topic/225699-concat/#findComment-1165348
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.