我想知道是否有一个操作符可以在PL/SQL
中使用,这样我就可以将字符串与它们自己连接起来,例如我们在PHP:
$myStr .= "more text";
表示:$myStr
接收自身加上字符串"more text"
。
虽然我不相信在PL/SQL中有复合赋值运算符,字符串连接运算符是||
,所以至少你可以这样做:
my_str := my_str || 'more text';
据我所知,只有||
可以连接字符串和concat
函数。
- http://www.techonthenet.com/oracle/functions/concat2.php
- 和
- http://www.techonthenet.com/oracle/functions/concat.php