병합 연산은 두 개의 문자 스트링 또는 비트 스트링 간에 이루어지며, 첫 번째 스트링 뒤에 두 번째 스트링이 덧붙여진다. 병합 연산자로 덧셈 기호(+)와 두 개의 파이프 심벌(||)이 제공된다. 문자열의 병합을 위해서는 || 연산자를 사용해야 한다.
concat_operand1
+ concat_operand1
concat_operand2
|| concat_operand2
concat_operand1
:
bit string
NULL
concat_operand2
:
bit string
character string
NULL
다음은 수도와 국가명을 하나의 문자열로 반환하는 예제이다.
SELECT capital ||', '|| name
FROM nation
WHERE name = 'Korea'
결과값: Seoul, Korea