7.0 KiB
7.0 KiB
1 | taos> select ASCII('hello') |
---|---|
2 | ascii('hello') | |
3 | ================= |
4 | 104 | |
5 | taos> select ASCII('hello world') |
6 | ascii('hello world') | |
7 | ======================= |
8 | 104 | |
9 | taos> select ASCII('hello world!') |
10 | ascii('hello world!') | |
11 | ======================== |
12 | 104 | |
13 | ========================================== |
14 | 104 | |
15 | taos> select ASCII('北京涛思数据科技有限公司') |
16 | ascii('北京涛思数据科技有限公司') | |
17 | ================================================ |
18 | 229 | |
19 | taos> select ASCII('hello') + 1 |
20 | ascii('hello') + 1 | |
21 | ============================ |
22 | 105.000000000000000 | |
23 | taos> select ASCII('hello') - 1 |
24 | ascii('hello') - 1 | |
25 | ============================ |
26 | 103.000000000000000 | |
27 | taos> select ASCII('hello') from ts_4893.meters limit 5 |
28 | ascii('hello') | |
29 | ================= |
30 | 104 | |
31 | 104 | |
32 | 104 | |
33 | 104 | |
34 | 104 | |
35 | taos> select ASCII('hello') + 1 from ts_4893.meters limit 1 |
36 | ascii('hello') + 1 | |
37 | ============================ |
38 | 105.000000000000000 | |
39 | taos> select ASCII('hello') + ASCII('hello') from ts_4893.meters limit 1 |
40 | ascii('hello') + ascii('hello') | |
41 | ================================== |
42 | 2.080000000000000e+02 | |
43 | taos> select ASCII(nch1) from ts_4893.meters order by ts limit 5 |
44 | ascii(nch1) | |
45 | ============== |
46 | 110 | |
47 | 228 | |
48 | 117 | |
49 | 112 | |
50 | 110 | |
51 | taos> select ASCII(var1) from ts_4893.meters order by ts limit 5 |
52 | ascii(var1) | |
53 | ============== |
54 | 110 | |
55 | 112 | |
56 | 110 | |
57 | 112 | |
58 | 228 | |
59 | =========================== |
60 | 110 | |
61 | 228 | |
62 | 117 | |
63 | 112 | |
64 | 110 | |
65 | taos> select ASCII(cast(nch1 as varchar)) from ts_4893.meters order by ts limit 5 |
66 | ascii(cast(nch1 as varchar)) | |
67 | =============================== |
68 | 110 | |
69 | 228 | |
70 | 117 | |
71 | 112 | |
72 | 110 | |
73 | ============================ |
74 | 12100.000000000000000 | |
75 | 51984.000000000000000 | |
76 | 13689.000000000000000 | |
77 | 12544.000000000000000 | |
78 | 12100.000000000000000 | |
79 | taos> select sqrt(ASCII(nch1)) from ts_4893.meters order by ts limit 5 |
80 | sqrt(ascii(nch1)) | |
81 | ============================ |
82 | 10.488088481701515 | |
83 | 15.099668870541500 | |
84 | 10.816653826391969 | |
85 | 10.583005244258363 | |
86 | 10.488088481701515 | |
87 | taos> select cast(ASCII(nch1) as int) from ts_4893.meters order by ts limit 5 |
88 | cast(ascii(nch1) as int) | |
89 | =========================== |
90 | 110 | |
91 | 228 | |
92 | 117 | |
93 | 112 | |
94 | 110 | |
95 | taos> select ascii('taos') |
96 | ascii('taos') | |
97 | ================ |
98 | 116 | |
99 | taos> select ascii('t') |
100 | ascii('t') | |
101 | ============= |
102 | 116 | |
103 | taos> select ascii('\'') |
104 | ascii('\'') | |
105 | ============== |
106 | 39 | |
107 | taos> select ascii(name) from ts_4893.d0 order by ts limit 10 |
108 | ascii(name) | |
109 | ============== |
110 | 108 | |
111 | 120 | |
112 | 108 | |
113 | 120 | |
114 | 108 | |
115 | 116 | |
116 | 104 | |
117 | 116 | |
118 | 116 | |
119 | 104 | |
120 | taos> select ascii(name) from ts_4893.meters order by ts limit 10 |
121 | ascii(name) | |
122 | ============== |
123 | 108 | |
124 | 120 | |
125 | 108 | |
126 | 120 | |
127 | 108 | |
128 | 116 | |
129 | 104 | |
130 | 116 | |
131 | 116 | |
132 | 104 | |
133 | taos> select ascii(nch1) from ts_4893.d0 order by ts limit 10 |
134 | ascii(nch1) | |
135 | ============== |
136 | 110 | |
137 | 228 | |
138 | 117 | |
139 | 112 | |
140 | 110 | |
141 | 110 | |
142 | 97 | |
143 | 228 | |
144 | 110 | |
145 | 97 | |
146 | taos> select ascii(nch1) from ts_4893.meters order by ts limit 10 |
147 | ascii(nch1) | |
148 | ============== |
149 | 110 | |
150 | 228 | |
151 | 117 | |
152 | 112 | |
153 | 110 | |
154 | 110 | |
155 | 97 | |
156 | 228 | |
157 | 110 | |
158 | 97 | |
159 | taos> select ascii(var1) from ts_4893.d0 order by ts limit 10 |
160 | ascii(var1) | |
161 | ============== |
162 | 110 | |
163 | 112 | |
164 | 110 | |
165 | 112 | |
166 | 228 | |
167 | 117 | |
168 | 112 | |
169 | 112 | |
170 | 112 | |
171 | 112 | |
172 | taos> select ascii(var1) from ts_4893.meters order by ts limit 10 |
173 | ascii(var1) | |
174 | ============== |
175 | 110 | |
176 | 112 | |
177 | 110 | |
178 | 112 | |
179 | 228 | |
180 | 117 | |
181 | 112 | |
182 | 112 | |
183 | 112 | |
184 | 112 | |
185 | taos> select ascii(null) |
186 | ascii(null) | |
187 | ============== |
188 | NULL | |
189 | taos> select ascii('0') |
190 | ascii('0') | |
191 | ============= |
192 | 48 | |
193 | taos> select ascii(' ') |
194 | ascii(' ') | |
195 | ============= |
196 | 32 | |
197 | taos> select ascii('~') |
198 | ascii('~') | |
199 | ============= |
200 | 126 | |
201 | taos> select ascii('中') |
202 | ascii('中') | |
203 | =============== |
204 | 228 | |
205 | taos> select ascii('é') |
206 | ascii('é') | |
207 | ============== |
208 | 195 | |
209 | taos> select ascii('!@#') |
210 | ascii('!@#') | |
211 | =============== |
212 | 33 | |
213 | taos> select ascii('Hello') |
214 | ascii('Hello') | |
215 | ================= |
216 | 72 | |
217 | taos> select ascii('123abc') |
218 | ascii('123abc') | |
219 | ================== |
220 | 49 | |
221 | ========================== |
222 | 65 | |
223 | taos> select ascii(char(65)) |
224 | ascii(char(65)) | |
225 | ================== |
226 | 65 | |
227 | taos> select ascii(upper('b')) |
228 | ascii(upper('b')) | |
229 | ==================== |
230 | 66 | |
231 | taos> select ascii(trim(' A ')) |
232 | ascii(trim(' A ')) | |
233 | ===================== |
234 | 65 | |
235 | name | ascii(name) | |
236 | =============================================== |
237 | lili | 108 | |
238 | ================================================================ |
239 | lili | 108 | |
240 | nch1 | ascii(nch1) | |
241 | =============================================== |
242 | novel | 110 | |
243 | var1 | ascii(var1) | |
244 | =============================================== |
245 | novel | 110 | |