Returns a string (varchar
) of repeated spaces.
Parameters:
null
is returned. if 0, an empty string is returned. (To return a string longer then 8000 spaces, use Replicate.SELECT SPACE(-1) -- Returns NULL
SELECT SPACE(0) -- Returns an empty string
SELECT SPACE(3) -- Returns ' ' (a string containing 3 spaces)