Greeting := ‘Hello’ || ‘World’;
In PL/SQL, you can concatenate two strings using the ||
operator. To achieve the desired result of concatenating the words “Hello” and “World” and assigning it to a variable named Greeting
, you can use the following single statement:
Greeting := 'Hello' || 'World';
This statement uses the ||
operator to concatenate the two strings, and the result is assigned to the variable Greeting
.