how to concat two columns into one with the existing column name in mysql?

后端 未结 6 1569
旧时难觅i
旧时难觅i 2020-12-07 13:22

I want to concatenate two columns in a table with a existing column name using mysql.

An example: I am having a column FIRSTNAME and LASTNAME

6条回答
  •  生来不讨喜
    2020-12-07 13:33

    You can try this simple way for combining columns:

    select some_other_column,first_name || ' ' || last_name AS First_name from customer;
    

提交回复
热议问题