SPACE function [String]

Returns a specified number of spaces.

Syntax
SPACE( integer-expression )
Parameters
  • integer-expression   The number of spaces to return.

Remarks

If integer-expression is negative, a null string is returned.

See also
Standards and compatibility
  • SQL/2003   Vendor extension.

Example

The following statement returns a string containing 10 spaces.

SELECT SPACE( 10 );