| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- select count(), v_chars as "文字" from /test/foo
- group by v_chars order by "文字" desc
- /**
- output()
- match('文字','d',count,4)
- match('文字','c',count,3)
- match('文字','b',count,2)
- match('文字','a',count,1)
- **/
- ;
- select count(*), v_chars as "文字" from /test/foo
- group by v_chars order by "文字" desc
- /**
- output()
- match('文字','d',count,4)
- match('文字','c',count,3)
- match('文字','b',count,2)
- match('文字','a',count,1)
- **/
- ;
- select count(id), v_chars as "文字" from /test/foo
- group by v_chars order by "文字" desc
- /**
- output()
- match('文字','d',count,4)
- match('文字','c',count,3)
- match('文字','b',count,2)
- match('文字','a',count,1)
- **/
- ;
- -- 不支持这种写法 distinct 后面必须带字段名
- select count(distinct), v_chars as "文字" from /test/foo
- group by v_chars order by "文字" desc
- /**
- onerror(continue,"not exist")
- noerrinfo()
- **/
- ;
- select count(distinct *), v_chars as "文字" from /test/foo
- group by v_chars order by "文字" desc
- /**
- output()
- match('文字','d',count,4)
- match('文字','c',count,3)
- match('文字','b',count,2)
- match('文字','a',count,1)
- **/
- ;
- select count(distinct id), v_chars as "文字" from /test/foo
- group by v_chars order by "文字" desc
- /**
- output()
- match('文字','d',count,4)
- match('文字','c',count,3)
- match('文字','b',count,2)
- match('文字','a',count,1)
- **/
- ;
- select count(distinct v_chars), v_chars as "文字" from /test/foo
- group by v_chars order by "文字" desc
- /**
- output()
- match('文字','d',count,1)
- match('文字','c',count,1)
- match('文字','b',count,1)
- match('文字','a',count,1)
- **/
- ;
- select count(distinct xx.v_chars), xx.v_chars as "文字" from /test/foo xx
- group by xx.v_chars order by "文字" desc
- /**
- output()
- match('文字','d',count,1)
- match('文字','c',count,1)
- match('文字','b',count,1)
- match('文字','a',count,1)
- **/
- ;
- select count(), v_chars as "文字" from
- (select * from /test/foo) xx
- group by v_chars order by "文字" desc
- /**
- output()
- match('文字','d',count,4)
- match('文字','c',count,3)
- match('文字','b',count,2)
- match('文字','a',count,1)
- **/
- ;
- select count(*), v_chars as "文字" from
- (select * from /test/foo) xx
- group by v_chars order by "文字" desc
- /**
- output()
- match('文字','d',count,4)
- match('文字','c',count,3)
- match('文字','b',count,2)
- match('文字','a',count,1)
- **/
- ;
- select count(id), v_chars as "文字" from
- (select * from /test/foo) xx
- group by v_chars order by "文字" desc
- /**
- output()
- match('文字','d',count,4)
- match('文字','c',count,3)
- match('文字','b',count,2)
- match('文字','a',count,1)
- **/
- ;
- select count(distinct), v_chars as "文字" from
- (select v_chars, id as distinct from /test/foo) xx
- group by v_chars order by "文字" desc
- /**
- output()
- match('文字','d',count,4)
- match('文字','c',count,3)
- match('文字','b',count,2)
- match('文字','a',count,1)
- **/
- ;
- select count(distinct *), v_chars as "文字" from
- (select * from /test/foo) xx
- group by v_chars order by "文字" desc
- /**
- output()
- match('文字','d',count,4)
- match('文字','c',count,3)
- match('文字','b',count,2)
- match('文字','a',count,1)
- **/
- ;
- select count(distinct id), v_chars as "文字" from
- (select * from /test/foo) xx
- group by v_chars order by "文字" desc
- /**
- output()
- match('文字','d',count,4)
- match('文字','c',count,3)
- match('文字','b',count,2)
- match('文字','a',count,1)
- **/
- ;
- select count(distinct v_chars), v_chars as "文字" from
- (select * from /test/foo) xx
- group by v_chars order by "文字" desc
- /**
- output()
- match('文字','d',count,1)
- match('文字','c',count,1)
- match('文字','b',count,1)
- match('文字','a',count,1)
- **/
- ;
- select count(distinct xx.v_chars), xx.v_chars as "文字" from
- (select * from /test/foo) xx
- group by xx.v_chars order by "文字" desc
- /**
- output()
- match('文字','d',count,1)
- match('文字','c',count,1)
- match('文字','b',count,1)
- match('文字','a',count,1)
- **/
- ;
|