PLSQL : || Operator Last Updated : 19 Sep, 2019 Comments Improve Suggest changes Like Article Like Report The string in PL/SQL is actually a sequence of characters with an optional size specification. The characters could be numeric, letters, blank, special characters or a combination of all. The || Operator in PLSQL is used to concatenate 2 or more strings together. The result of concatenating two character strings is another character string. The result has datatype CHAR and is limited to 2000 characters if both character strings are of datatype CHAR whereas if either string is of datatype VARCHAR2, the result has datatype VARCHAR2 and is limited to 4000 characters. The CONCAT character function can also be used as an alternative to the vertical bar operator in PLSQL for concatenation of strings. Syntax: string1 || string2 [ || string_n ] Parameters Used: string1 - It is used to specify the first string to concatenate. string2 - It is used to specify the second string to concatenate. string_n - It is used to specify the nth string to concatenate. Return Type: The || operator returns a string value. Supported Versions of Oracle/PLSQL: Oracle 12c Oracle 11g Oracle 10g Oracle 9i Oracle 8i Example-1: DECLARE Test_String string(10) := 'Hello '; Test_String2 string(10) := 'world!'; BEGIN dbms_output.put_line((Test_String || Test_String2)); END; Output: Hello world! Example-2: DECLARE Test_String string(10) := 'Geeks'; Test_String2 string(10) := 'For'; Test_String3 string(10) := 'Geeks'; BEGIN dbms_output.put_line(Test_String || Test_String2 || Test_String3); END; Output: GeeksForGeeks Comment More infoAdvertise with us Next Article PLSQL : || Operator S Shubrodeep Banerjee Follow Improve Article Tags : SQL SQL-PL/SQL Similar Reads SQL Operators SQL operators are important in DBMS as they allow us to manipulate and retrieve data efficiently. Operators in SQL perform arithmetic, logical, comparison, bitwise, and other operations to work with database values. Understanding SQL operators is crucial for performing complex data manipulations, ca 5 min read SQL OR Operator The SQL OR operator is a powerful tool used to filter records in a database by combining multiple conditions in the WHERE clause. When using OR, a record will be returned if any of the conditions connected by the operator are true. This allows for more flexibility in querying and is important when w 7 min read SQL AND Operator In SQL, the AND operator is an essential tool used to combine multiple conditions in a WHERE clause. This allows us to filter records based on multiple criteria, making our queries more specific and tailored to our needs. When used correctly, the AND operator can help us retrieve data that satisfies 5 min read SQL NOT Operator The SQL NOT Operator is a logical operator used to negate or reverse the result of a condition in SQL queries. It is commonly used with the WHERE clause to filter records that do not meet a specified condition, helping you exclude certain values from your results.In this article, we will learn every 3 min read SQL LIKE Operator The SQL LIKE operator is used for performing pattern-based searches in a database. It is used in combination with the WHERE clause to filter records based on specified patterns, making it essential for any database-driven application that requires flexible search functionality.In this article, we wi 5 min read Like