Skip to main content
Version: current [24.3.x]

REPEATSTR

Categories: String

REPEATSTR

Repeats the given string n times.

Syntax

REPEATSTR(expression varchar, nTimes int32) → varchar

  • expression: String/characters to repeat.
  • nTimes: Number of times the string should be repeated.

Examples

REPEATSTR example
SELECT REPEATSTR('a ', 5)
-- a a a a a