SPACE#

Returns a string of repeated spaces.

Syntax#

SPACE ( integer_expression )

Arguments#

index

Is a positive integer that indicates the number of spaces. If index is negative, a null string is returned.

Return types#

varchar or nvarchar

Examples#

SELECT SPACE(2);

See Also#