homework-jianmu/tests/army/query/function/in/ascii.in

44 lines
1.7 KiB
Plaintext

select ASCII('hello')
select ASCII('hello world')
select ASCII('hello world!')
select ASCII('hello,world.你好,世界。')
select ASCII('北京涛思数据科技有限公司')
select ASCII('hello') + 1
select ASCII('hello') - 1
select ASCII('hello') from ts_4893.meters limit 5
select ASCII('hello') + 1 from ts_4893.meters limit 1
select ASCII('hello') + ASCII('hello') from ts_4893.meters limit 1
select ASCII(nch1) from ts_4893.meters order by ts limit 5
select ASCII(var1) from ts_4893.meters order by ts limit 5
select ASCII(concat(nch1,var1)) from ts_4893.meters order by ts limit 5
select ASCII(cast(nch1 as varchar)) from ts_4893.meters order by ts limit 5
select pow(ASCII(nch1), 2) from ts_4893.meters order by ts limit 5
select sqrt(ASCII(nch1)) from ts_4893.meters order by ts limit 5
select cast(ASCII(nch1) as int) from ts_4893.meters order by ts limit 5
select ascii('taos')
select ascii('t')
select ascii('\'')
select ascii(name) from ts_4893.d0 order by ts limit 10
select ascii(name) from ts_4893.meters order by ts limit 10
select ascii(nch1) from ts_4893.d0 order by ts limit 10
select ascii(nch1) from ts_4893.meters order by ts limit 10
select ascii(var1) from ts_4893.d0 order by ts limit 10
select ascii(var1) from ts_4893.meters order by ts limit 10
select ascii(null)
select ascii('0')
select ascii(' ')
select ascii('~')
select ascii('中')
select ascii('é')
select ascii('!@#')
select ascii('Hello')
select ascii('123abc')
select ascii(concat('A', 'B'))
select ascii(char(65))
select ascii(upper('b'))
select ascii(trim(' A '))
select name, ascii(name) from ts_4893.meters limit 1
select name, ascii(substring(name, 1, 1)) from ts_4893.meters limit 1
select nch1, ascii(nch1) from ts_4893.meters limit 1
select var1, ascii(var1) from ts_4893.meters limit 1