The following illustration depicts a concatenation operation on two sequences of characters.
下图说明两个字元序列的串连作业。
When ON is specified, the result of a concatenation operation is NULL when either operand is NULL.
当指定为ON时,如果串联操作的两个操作数中任意一个为NULL,则结果也为NULL。
The string version of concatenation requires strings you want to join to be copied to a new location, which is an o (n) operation.
String版本的连接操作要求将需要连接的两个字符串复制到新位置,这是一种O (n)操作。
The rope counterpart simply creates a new concatenation node, which is an o (1) operation.
rope版本的连接操作则只是创建一个新的连接节点,这是个o(1)操作。
Therefore, any operation on a string, including string concatenation, produces a new string object, rather than modifying an existing one.
所以,在字符串上的任何操作,包括字符串连接,都产生一个新的字符串对象,而不是更改一个存在的字符串。
Concatenation refers to the operation of appending one sequence to another.
串联是指将一个序列追加到另一个序列的运算。
Concatenation refers to the operation of appending one sequence to another.
串联是指将一个序列追加到另一个序列的运算。
应用推荐