MySQL combine two columns into one column

后端 未结 10 982
后悔当初
后悔当初 2020-11-29 00:46

I\'m trying to find a way to combine two columns into one, but keep getting the value \'0\' in the column instead to the combination of the words.

These are what I\'

10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 01:32

    If you are Working On Oracle Then:

    SELECT column1 || column2 AS column3
    FROM table;
    

    OR

    If You Are Working On MySql Then:

    SELECT Concat(column1 ,column2) AS column3
    FROM table;
    

提交回复
热议问题