Skip to contents

Repeats the string count number of times.

Repeats the blob count number of times.

Repeats the list count number of times.

Arguments

col0

ANY | T[]

col1

BIGINT

string

VARCHAR

count

BIGINT

blob

BLOB

Value

VARCHAR | BLOB | T[]

Overloads

  • `repeat`(col0 = ANY, col1 = BIGINT)

  • `repeat`(string = VARCHAR, count = BIGINT)

  • `repeat`(blob = BLOB, count = BIGINT)

  • `repeat`(col0 = `T[]`, col1 = BIGINT)

SQL examples

repeat('A', 5)
repeat('\xAA\xBB'::BLOB, 5)
repeat([1, 2, 3], 5)

See also

Other blob: decode(), encode(), from_base64(), hex(), md5(), md5_number(), octet_length(), or–or, sha1(), sha256(), to_base64(), unbin(), unhex()

Other list: array_extract(), array_length(), concat(), contains(), flatten(), generate_series(), len(), list_aggregate(), list_concat(), list_contains(), list_cosine_distance(), list_cosine_similarity(), list_distance(), list_distinct(), list_extract(), list_filter(), list_grade_up(), list_has_all(), list_has_any(), list_inner_product(), list_intersect(), list_negative_inner_product(), list_position(), list_reduce(), list_resize(), list_reverse_sort(), list_select(), list_slice(), list_sort(), list_transform(), list_unique(), list_value(), list_where(), list_zip(), or–or, range(), unpivot_list()

Other string: array_extract(), ascii(), bar(), bin(), bit_length(), chr(), concat(), concat_ws(), contains(), formatReadableDecimalSize(), format_bytes(), from_base64(), greatest(), hash(), hex(), ilike_escape(), instr(), least(), left(), left_grapheme(), len(), length_grapheme(), like_escape(), list_slice(), lower(), lpad(), ltrim(), md5(), md5_number(), nfc_normalize(), not_ilike_escape(), not_like_escape(), or–or, parse_dirname(), parse_dirpath(), parse_filename(), parse_formatted_bytes(), parse_path(), prefix(), printf(), replace(), reverse(), right(), right_grapheme(), rpad(), rtrim(), sha1(), sha256(), starts_with(), string_split(), strip_accents(), strlen(), substring(), substring_grapheme(), suffix(), to_base(), to_base64(), translate(), trim(), unbin(), unhex(), unicode(), upper(), url_decode(), url_encode()