bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL SPACE() Function

Concept visual

MySQL SPACE() Function

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Example

Return a string with 10 space characters:

Select

SPACE(10);

Definition and Usage

The SPACE() function returns a string of the specified number of space characters.

Syntax

Space(

number )

Parameter Values

Parameter

Description number

Required. The number of space characters to return

Technical Details

Works in:

From MySQL 4.0

Previous

❮ MySQL Functions

Next

Previous

MySQL RTRIM() Function

Next

MySQL STRCMP() Function