把指定字符串重复多次来生成新的字符串。
repeat ::=
repeat ::= REPEAT ( character_expression , count )
character_expression
表示要重复的字符串表达式
count
整数,表示要重复的次数。若count值小于等于0,则返回空串。
TEXT类型,重复指定字符串后生成的新字符串。
注解
示例1: 对一个字符串使用 REPEAT 函数
-- 对一个字符串使用 REPEAT 函数 SELECT REPEAT('hello world', 5); REPEAT(text) | ------------------ hello worldhello w| orldhello worldhe| llo worldhello wo| rld | 总数目:1