space
function
Applies to: Databricks SQL Databricks Runtime
Returns a string consisting of n
spaces.
Syntax
space(n)
Arguments
n
: AnINTEGER
expression that evaluates to a numeric.
Returns
A STRING
.
If n
is less than or equal to 0 an empty string.
Examples
> SELECT concat('1', space(2), '1');
1 1
Related functions
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for