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