What does SQL Select symbol || mean?

后端 未结 6 2176
生来不讨喜
生来不讨喜 2020-12-03 04:26

What does || do in SQL?

SELECT \'a\' || \',\' || \'b\' AS letter
6条回答
  •  死守一世寂寞
    2020-12-03 04:48

    It's a concatenation operator. So you would get 'a,b' from that. I think || will work on most RDBMS's. SQL Server requires the + operator (thanks to HVD for setting me straight!).

提交回复
热议问题