Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - SQL 参考 » 使用 SQL » SQL 函数 » SQL 函数 (P-Z)

 

SPACE 函数 [String]

返回指定数目的空格。

语法
SPACE( integer-expression )
参数
  • integer-expression   要返回的空格数。

返回值

LONG VARCHAR

注释

如果 integer-expression 为负,则返回空字符串。

另请参见
标准和兼容性
  • SQL/2003   服务商扩充。

示例

以下语句返回包含 10 个空格的字符串。

SELECT SPACE( 10 );