homework-jianmu/tests/army/query/function/ans/repeat.csv

14 KiB

1taos> select repeat('hello'1)
2repeat('hello'1) |
3taos> select repeat('hello'20)
4repeat('hello'20) |
5taos> SELECT REPEAT('a'2)
6repeat('a'2) |
7taos> select repeat('北京taos'6)
8repeat('北京taos'6) |
9taos> select repeat(nch16) from ts_4893.meters order by ts limit 5
10repeat(nch16) |
11taos> select repeat(var16) from ts_4893.meters order by ts limit 5
12repeat(var16) |
13taos> select position(nch1 in repeat(nch16)) from ts_4893.meters order by ts limit 5
14position(nch1 in repeat(nch16)) |
15taos> select position(var1 in repeat(var16)) from ts_4893.meters order by ts limit 5
16position(var1 in repeat(var16)) |
17taos> select position(nch1 in repeat(var16)) from ts_4893.meters where nch1 = var1 order by ts limit 5
18position(nch1 in repeat(var16)) |
19taos> select position(var1 in repeat(nch16)) from ts_4893.meters where nch1 = var1 order by ts limit 5
20position(var1 in repeat(nch16)) |
21taos> select repeat(nch1id) from ts_4893.meters where id > 0 order by ts limit 5
22repeat(nch1id) |
23taos> select repeat(var1id) from ts_4893.meters where id > 0 order by ts limit 5
24repeat(var1id) |
25taos> select repeat('nch1'id) from ts_4893.meters where id > 0 order by ts limit 5
26repeat('nch1'id) |
27taos> select repeat('var1'id) from ts_4893.meters where id > 0 order by ts limit 5
28repeat('var1'id) |
29taos> select repeat('taos'1)
30repeat('taos'1) |
31taos> select repeat('taos'2)
32repeat('taos'2) |
33taos> select repeat(name3) from ts_4893.d0 order by ts limit 10
34repeat(name3) |
35taos> select repeat(name3) from ts_4893.meters order by ts limit 10
36repeat(name3) |
37taos> select repeat(nch13) from ts_4893.d0 order by ts limit 10
38repeat(nch13) |
39taos> select repeat(nch13) from ts_4893.meters order by ts limit 10
40repeat(nch13) |
41taos> select repeat(var13) from ts_4893.d0 order by ts limit 10
42repeat(var13) |
43taos> select repeat(var13) from ts_4893.meters order by ts limit 10
44repeat(var13) |
45taos> select repeat(namegroupid) from ts_4893.d0 order by ts limit 10
46repeat(namegroupid) |
47taos> select repeat(namegroupid) from ts_4893.meters order by ts limit 10
48repeat(namegroupid) |
49taos> select repeat(nch1groupid) from ts_4893.d0 order by ts limit 10
50repeat(nch1groupid) |
51taos> select repeat(nch1groupid) from ts_4893.meters order by ts limit 10
52repeat(nch1groupid) |
53taos> select repeat(null3)
54repeat(null3) |
55taos> select repeat('taos'null)
56repeat('taos'null) |
57taos> select repeat('taos'0)
58repeat('taos'0) |
59taos> select repeat(''5)
60repeat(''5) |
61taos> select repeat('A'0)
62repeat('A'0) |
63taos> select repeat('A'10)
64repeat('A'10) |
65taos> select repeat('A B'5)
66repeat('A B'5) |
67taos> select repeat('ABC'1)
68repeat('ABC'1) |
69taos> select repeat('Hello'2)
70repeat('Hello'2) |
71taos> select repeat('HelloWorld'2)
72repeat('HelloWorld'2) |
73taos> select repeat('123'5)
74repeat('123'5) |
75taos> select repeat('12345'3)
76repeat('12345'3) |
77taos> select repeat('!@#'3)
78repeat('!@#'3) |
79taos> select repeat('你好'2)
80repeat('你好'2) |
81taos> select repeat('abc'length('abc'))
82repeat('abc'length('abc')) |
83taos> select repeat(upper('abc')4)
84repeat(upper('abc')4) |
85taos> select repeat(trim(' Hello ')3)
86repeat(trim(' Hello ')3) |
87name | repeat(name3) |
88var1 | repeat(var12) |
89nch1 | repeat(nch14) |