ClickHouse/tests/queries/0_stateless/01013_repeat_function.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
739 B
MySQL
Raw Normal View History

2019-09-19 16:50:21 +00:00
SELECT repeat('abc', 10);
DROP TABLE IF EXISTS defaults;
CREATE TABLE defaults
(
2019-09-22 23:30:13 +00:00
strings String,
2023-03-02 12:08:39 +00:00
i8 Int8,
2019-09-22 23:30:13 +00:00
u16 UInt16,
u32 UInt32,
u64 UInt64
2019-09-19 16:50:21 +00:00
)ENGINE = Memory();
2023-03-02 12:08:39 +00:00
INSERT INTO defaults values ('abc', 3, 12, 4, 56) ('sdfgg', -2, 10, 21, 200) ('xywq', -1, 4, 9, 5) ('plkf', 0, 5, 7,77);
2019-09-19 16:50:21 +00:00
2023-03-02 12:08:39 +00:00
SELECT repeat(strings, i8) FROM defaults;
2019-09-19 16:50:21 +00:00
SELECT repeat(strings, u16) FROM defaults;
SELECT repeat(strings, u32) from defaults;
SELECT repeat(strings, u64) FROM defaults;
SELECT repeat(strings, 10) FROM defaults;
2023-03-02 12:08:39 +00:00
SELECT repeat('abc', i8) FROM defaults;
2019-09-19 16:50:21 +00:00
SELECT repeat('abc', u16) FROM defaults;
SELECT repeat('abc', u32) FROM defaults;
SELECT repeat('abc', u64) FROM defaults;
SELECT repeat('Hello, world! ', 3);
2019-09-19 16:50:21 +00:00
DROP TABLE defaults;