From the fine manual:
Function:
string || string
Return Type:text
Description:String concatenation
Example:'Post' || 'greSQL'
Result:PostgreSQL
So a || b
is string concatenation. This is standard SQL, some non-standard databases use concat(a, b)
or a + b
.
Single quotes are used in (standard) SQL for string literals so ' ::: '
is just a string.
That means that the whole thing:
name||' ::: '||id
is just the name
and id
pasted together with ' ::: '
between them. That SQL would probably be easier to read if the author added a little bit of whitespace:
name || ' ::: ' || id
BTW, you'll have better luck using SymbolHound to search for such things: