Home » Php » php – Operator analogous to += or .= in PL/SQL?

php – Operator analogous to += or .= in PL/SQL?

Posted by: admin July 12, 2020 Leave a comment


I’d like to know whether there’s an operator I could use in PL/SQL so that I could concatenate Strings with themselves, like what, for example we have in PHP:

$myStr .= "more text";

Which means: $myStr receives itself plus the string "more text".

How to&Answers:

While I don’t believe there are compound assignment operators in PL/SQL, the string concatenation operator is || so at least you can do this:

my_str := my_str || 'more text';


To my knowledge there is only || to concatenate strings and the concat function.