前端数据查询抽象
Join Union UnionAll
delete /res/:name Join(TB1(a=1||b=2&&v>=2) as a,Tb2(v=2) as b,a.a=b.b)
delete /res/:name TB1(a=1||b=2&&v>=2||v in [])
update /res/:name data Join(TB1(a=1||b=2&&v>=2) as a,Tb2(v=2) as b,a.a=b.b)
get /res/:name TB1(a=1||b=2&&v>=2||v nin [1,2,3,4])
get /res/:name Join(TB1(a=1||b=2&&v>=2) as a,Tb2(v=2) as b,a.a=b.b)
| group_by()
| sort(~a,~b)
| fields(a,b,c,d)
get /res/:name UnionAll(TB1(a=1||b=2&&v>=2) as a,Tb2(v=2) as b,a.a=b.b) | group_by(c1,c2,c3)
| sort(~a,~b)
| fields(count(a) as a1,b,c,d)
作者:百里求一
出处:http://www.cnblogs.com/bergus/
我的语雀: https://www.yuque.com/barry.bai
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。