Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
文字列を指定された回数だけ連結します。
REPEAT( string-expression, integer-expression )
string-expression 繰り返される文字列。
integer-expression 文字列を繰り返す回数。integer-expression が負の場合は、空の文字列を返します。
実際の結果文字列の長さが戻り値の最大長を超えると、エラーが発生します。この場合、結果は文字列に使用できる最大サイズまでトランケートされます。
この関数の動作は、REPLICATE 関数と同じです。
この関数は NCHAR の入力または出力をサポートしています。
SQL/2008 ベンダー拡張。
次の文は、値 repeatrepeatrepeat を返します。
SELECT REPEAT( 'repeat', 3 );