STUFF( ) Function

Example   See Also

Returns a character string created by replacing a specified number of characters in a character expression with another character expression.

Syntax

STUFF(cExpression, nStartReplacement, nCharactersReplaced, cReplacement)

Returns

Character

Arguments

cExpression

Specify the character expression in which the replacement occurs.

nStartReplacement

Specifies the position in cExpression where the replacement begins.

nCharactersReplaced

Specifies the number of characters to be replaced. If nCharactersReplaced is 0, the replacement string cReplacement is inserted into cExpression.

cReplacement

Specifies the replacement character expression. If cReplacement is the empty string, the number of characters specified by nCharactersReplaced are removed from cExpression.