How to combine multiple columns as one and format with custom strings?

前端 未结 4 1043
被撕碎了的回忆
被撕碎了的回忆 2020-12-14 16:21
SELECT id,  AS name FROM `table`

Basically is a combination of
lastname + \', \' + firstname

example wo

4条回答
  •  既然无缘
    2020-12-14 16:45

    use concat like :

    SELECT id, CONCAT(lastname, ' , ', firstname) AS name FROM `table`;
    

提交回复
热议问题