Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
用一组输入字符串建立结果字符串。
xp_sprintf( output_buffer, format, parm [, parm2, ... ] )
output_buffer 使用此 CHAR(254) 参数指定包含结果字符串的输出缓冲区。
format 使用此 CHAR(254) 参数指定结果字符串的格式,为每个 parm 参数使用占位符 (%s)。format 参数中最多可以有五十个占位符,而且应与 parm 参数中的占位符数量相同。
parm 这些是结果字符串中使用的输入字符串。最多可以指定 50 个这样的 CHAR(254) 参数。
xp_sprintf 系统过程使用 format 参数和 parm 参数创建字符串,并将结果放在 output-buffer 中。
无
以下语句将字符串 Hello World! 放在结果变量中。
CREATE VARIABLE result CHAR(254); Call xp_sprintf( result, '%s %s', 'Hello', 'World!' );