Most relational databases have some sort of REPEAT() string function, for instance:
REPEAT()
SELECT REPEAT(\'abc\', 3)
Would yield
A simplified version of @Lukas Eder's solution using hex() instead of quote:
-- X = string -- Y = number of repetitions replace(hex(zeroblob(Y)), '00', X)