Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
以指定的次数连接字符串。
REPLICATE( string-expression, integer-expression )
string-expression 要重复的字符串。
integer-expression 字符串的重复次数。
LONG VARCHAR
如果结果字符串的实际长度超过返回类型的最大值,会产生错误。结果将截断为所允许的最大字符串大小。
此函数的行为与 REPEAT 函数的行为相同。
SQL/2008 服务商扩充。
下面的语句返回值 repeatrepeatrepeat。
SELECT REPLICATE( 'repeat', 3 );