Share this page:

oracle tutorial

Oracle/PLSQL: || Operator

This Oracle tutorial explains how to use the Oracle/PLSQL || concatenate operator with syntax and examples.

Description

The Oracle/PLSQL || operator allows you to concatenate 2 or more strings together.

Syntax

The syntax for the Oracle/PLSQL || operator is:

string1 || string2 || string_n

Parameters or Arguments

string1 is the first string to concatenate.

string2 is the second string to concatenate.

string_n is the nth string to concatenate.

Applies To

The || operator can be used in the following versions of Oracle/PLSQL:

  • Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i

Example

Let's look at some Oracle || operator examples and explore how to use the || operator in Oracle/PLSQL.

For example:

'Tech on' || ' the Net'
Result: 'Tech on the Net'

'a' || 'b' || 'c' || 'd'
Result: 'abcd'