What does ||
do in SQL?
SELECT 'a' || ',' || 'b' AS letter
||
represents string concatenation. Unfortunately, string concatenation is not completely portable across all sql dialects:
||
(infix operator)concat
( vararg function ). caution: ||
means 'logical or' (It's configurable, however; thanks to @hvd for pointing that out)||
(infix operator), concat
( caution: function of arity 2 only ! )||
(infix operator)+
(infix operator), concat
( vararg function )||
(infix operator)hopefully the confusion is complete ...