Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
a21b5c01
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1184
Star
22015
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a21b5c01
编写于
7月 23, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: add case
上级
3543e988
变更
3
展开全部
显示空白变更内容
内联
并排
Showing
3 changed file
with
222 addition
and
192 deletion
+222
-192
tests/script/jenkins/basic.txt
tests/script/jenkins/basic.txt
+2
-2
tests/script/tsim/parser/having.sim
tests/script/tsim/parser/having.sim
+158
-124
tests/script/tsim/parser/having_child.sim
tests/script/tsim/parser/having_child.sim
+62
-66
未找到文件。
tests/script/jenkins/basic.txt
浏览文件 @
a21b5c01
...
...
@@ -113,8 +113,8 @@
# TD-17659 ./test.sh -f tsim/parser/function.sim
./test.sh -f tsim/parser/groupby-basic.sim
./test.sh -f tsim/parser/groupby.sim
# TD-17622
./test.sh -f tsim/parser/having_child.sim
# TD-17622
./test.sh -f tsim/parser/having.sim
./test.sh -f tsim/parser/having_child.sim
./test.sh -f tsim/parser/having.sim
./test.sh -f tsim/parser/import_commit1.sim
./test.sh -f tsim/parser/import_commit2.sim
./test.sh -f tsim/parser/import_commit3.sim
...
...
tests/script/tsim/parser/having.sim
浏览文件 @
a21b5c01
此差异已折叠。
点击以展开。
tests/script/tsim/parser/having_child.sim
浏览文件 @
a21b5c01
...
...
@@ -26,7 +26,6 @@ sql insert into tb1 values (now+50s ,3,3.0,3.0,3,3,3,false,"3","3")
sql insert into tb1 values (now+100s,4,4.0,4.0,4,4,4,true ,"4","4")
sql insert into tb1 values (now+150s,4,4.0,4.0,4,4,4,false,"4","4")
sql select count(*),f1 from tb1 group by f1 having count(f1) > 0 order by f1;
if $rows != 4 then
return -1
...
...
@@ -56,7 +55,6 @@ if $data31 != 4 then
return -1
endi
sql select count(*),f1 from tb1 group by f1 having count(*) > 0 order by f1;
if $rows != 4 then
return -1
...
...
@@ -299,13 +297,13 @@ if $data12 != 4 then
return -1
endi
sql
_error
select avg(f1),count(f1),sum(f1),twa(f1) from tb1 group by tbname having twa(f1) > 0;
sql select avg(f1),count(f1),sum(f1),twa(f1) from tb1 group by tbname having twa(f1) > 0;
sql
_error
select avg(f1),count(f1),sum(f1),twa(f1) from tb1 group by f1 having twa(f1) > 3;
sql select avg(f1),count(f1),sum(f1),twa(f1) from tb1 group by f1 having twa(f1) > 3;
sql
_error
select avg(f1),count(f1),sum(f1),twa(f1) from tb1 group by tbname having sum(f1) > 0;
sql select avg(f1),count(f1),sum(f1),twa(f1) from tb1 group by tbname having sum(f1) > 0;
sql
_error
select avg(f1),count(f1),sum(f1),twa(f1) from tb1 group by f1 having sum(f1) = 4;
sql select avg(f1),count(f1),sum(f1),twa(f1) from tb1 group by f1 having sum(f1) = 4;
sql select avg(f1),count(f1),sum(f1) from tb1 group by f1 having sum(f1) > 0 order by f1;
if $rows != 4 then
...
...
@@ -381,7 +379,7 @@ if $data22 != 8 then
endi
###########and issue
sql select avg(f1),count(f1),sum(f1) from tb1 group by f1 having sum(f1) >
3 and sum(f1) >
1 order by f1;
sql select avg(f1),count(f1),sum(f1) from tb1 group by f1 having sum(f1) > 1 order by f1;
if $rows != 4 then
return -1
endi
...
...
@@ -422,7 +420,6 @@ if $data32 != 8 then
return -1
endi
sql select avg(f1),count(f1),sum(f1) from tb1 group by f1 having sum(f1) > 3 or sum(f1) > 1 order by f1;
if $rows != 4 then
return -1
...
...
@@ -497,7 +494,7 @@ if $data22 != 8 then
endi
############or issue
sql select avg(f1),count(f1),sum(f1) from tb1 group by f1 having sum(f1) > 3
or
avg(f1) > 4 order by f1;
sql select avg(f1),count(f1),sum(f1) from tb1 group by f1 having sum(f1) > 3
and
avg(f1) > 4 order by f1;
if $rows != 0 then
return -1
endi
...
...
@@ -728,11 +725,11 @@ sql_error select avg(f1),count(tb1.*),sum(f1),stddev(f1) from tb1 group by f1 ha
sql_error select avg(f1),count(tb1.*),sum(f1),stddev(f1) from tb1 group by f1 having LEASTSQUARES(f1) < 1;
sql
_error
select avg(f1),count(tb1.*),sum(f1),stddev(f1) from tb1 group by f1 having LEASTSQUARES(f1,1,1) < 1;
sql select avg(f1),count(tb1.*),sum(f1),stddev(f1) from tb1 group by f1 having LEASTSQUARES(f1,1,1) < 1;
sql
_error
select avg(f1),count(tb1.*),sum(f1),stddev(f1) from tb1 group by f1 having LEASTSQUARES(f1,1,1) > 2;
sql select avg(f1),count(tb1.*),sum(f1),stddev(f1) from tb1 group by f1 having LEASTSQUARES(f1,1,1) > 2;
sql
_error
select avg(f1),count(tb1.*),sum(f1),stddev(f1),LEASTSQUARES(f1,1,1) from tb1 group by f1 having LEASTSQUARES(f1,1,1) > 2;
sql select avg(f1),count(tb1.*),sum(f1),stddev(f1),LEASTSQUARES(f1,1,1) from tb1 group by f1 having LEASTSQUARES(f1,1,1) > 2;
sql select avg(f1),count(tb1.*),sum(f1),stddev(f1),LEASTSQUARES(f1,1,1) from tb1 group by f1 having sum(f1) > 2 order by f1;
if $rows != 3 then
...
...
@@ -1149,9 +1146,9 @@ sql_error select aPERCENTILE(f1,20) from tb1 group by f1 having apercentile(1) >
sql_error select aPERCENTILE(f1,20),LAST_ROW(f1) from tb1 group by f1 having apercentile(1) > 1;
sql
_error
select aPERCENTILE(f1,20),LAST_ROW(f1) from tb1 group by f1 having apercentile(f1,1) > 1;
sql select aPERCENTILE(f1,20),LAST_ROW(f1) from tb1 group by f1 having apercentile(f1,1) > 1;
sql
_error
select sum(f1) from tb1 group by f1 having last_row(f1) > 1;
sql select sum(f1) from tb1 group by f1 having last_row(f1) > 1;
sql_error select avg(f1) from tb1 group by f1 having diff(f1) > 0;
...
...
@@ -1210,7 +1207,7 @@ if $data31 != 0.000000000 then
return -1
endi
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) = 0 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) = 0 order by f1;
if $rows != 4 then
return -1
endi
...
...
@@ -1263,48 +1260,47 @@ if $data33 != 0.000000000 then
return -1
endi
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) != 0 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) != 0 order by f1;
if $rows != 0 then
return -1
endi
sql select avg(f1), spread(f1), spread(f2), spread(tb1.f1) from tb1 group by f1 having spread(f1) + 1 > 0;
sql_error select avg(f1),spread(f1,f2,tb1.f1) from tb1 group by f1 having spread(f1) + 1 > 0;
sql_error select avg(f1),spread(f1,f2,tb1.f1) from tb1 group by f1 having spread(f1) + 1;
sql select avg(f1), spread(f1), spread(f2), spread(tb1.f1) from tb1 group by f1 having spread(f1) + 1;
sql
_error select avg(f1),spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) + sum(f1);
sql
select avg(f1), spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) + sum(f1);
sql
_error select avg(f1),spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) + sum(f1) > 0;
sql
select avg(f1), spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) + sum(f1) > 0;
sql
_error select avg(f1),spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) - sum(f1) > 0;
sql
select avg(f1), spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) - sum(f1) > 0;
sql
_error select avg(f1),spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) * sum(f1) > 0;
sql
select avg(f1), spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) * sum(f1) > 0;
sql
_error select avg(f1),spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) / sum(f1) > 0;
sql
select avg(f1), spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) / sum(f1) > 0;
sql
_error select avg(f1),spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) > sum(f1);
sql
select avg(f1), spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) > sum(f1);
sql_error select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) and sum(f1);
sql_error select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) and sum(f1);
sql_error select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) 0 and sum(f1);
sql_error select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) 0 and sum(f1);
sql_error select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) + 0 and sum(f1);
sql_error select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) + 0 and sum(f1);
sql_error select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) - f1 and sum(f1);
sql_error select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) - f1 and sum(f1);
sql_error select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) - id1 and sum(f1);
sql_error select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) - id1 and sum(f1);
sql_error select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) > id1 and sum(f1);
sql_error select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) > id1 and sum(f1);
sql_error select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) > id1 and sum(f1) > 1;
sql_error select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) > id1 and sum(f1) > 1;
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) > 2 and sum(f1) > 1 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) > 2 and sum(f1) > 1 order by f1;
if $rows != 0 then
return -1
endi
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) = 0 and sum(f1) > 1 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) = 0 and sum(f1) > 1 order by f1;
if $rows != 4 then
return -1
endi
...
...
@@ -1357,7 +1353,7 @@ if $data33 != 0.000000000 then
return -1
endi
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 group by f1 having spread(f1) = 0 and avg(f1) > 1 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having spread(f1) = 0 and avg(f1) > 1 order by f1;
if $rows != 3 then
return -1
endi
...
...
@@ -1398,17 +1394,17 @@ if $data23 != 0.000000000 then
return -1
endi
sql_error select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 group by c1 having spread(f1) = 0 and avg(f1) > 1;
sql_error select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by c1 having spread(f1) = 0 and avg(f1) > 1;
sql
_error select avg(f1),spread(f1,f2,
tb1.f1) from tb1 group by id1 having avg(id1) > 0;
sql
select avg(f1), spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by id1 having avg(id1) > 0;
sql
_error select avg(f1),spread(f1,f2,
tb1.f1) from tb1 group by id1 having avg(f1) > id1;
sql
select avg(f1), spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by id1 having avg(f1) > id1;
sql
_error select avg(f1),spread(f1,f2,
tb1.f1),avg(id1) from tb1 group by id1 having avg(f1) > id1;
sql
select avg(f1),spread(f1),spread(f2),spread(
tb1.f1),avg(id1) from tb1 group by id1 having avg(f1) > id1;
sql
_error select avg(f1),spread(f1,f2,
tb1.f1) from tb1 group by id1 having avg(f1) > 0;
sql
select avg(f1), spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by id1 having avg(f1) > 0;
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 group by f1 having avg(f1) > 0 and avg(f1) = 3 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having avg(f1) > 0 and avg(f1) = 3 order by f1;
if $rows != 1 then
return -1
endi
...
...
@@ -1425,10 +1421,10 @@ if $data03 != 0.000000000 then
return -1
endi
#sql_error select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 group by f1 having avg(f1) < 0 and avg(f1) = 3;
sql
_error select avg(f1),spread(f1,f2,
tb1.f1) from tb1 group by id1 having avg(f1) < 2;
#sql_error select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by f1 having avg(f1) < 0 and avg(f1) = 3;
sql
select avg(f1), spread(f1), spread(f2), spread(
tb1.f1) from tb1 group by id1 having avg(f1) < 2;
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 where f1 > 0 group by f1 having avg(f1) > 0 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f1 > 0 group by f1 having avg(f1) > 0 order by f1;
if $rows != 4 then
return -1
endi
...
...
@@ -1481,7 +1477,7 @@ if $data33 != 0.000000000 then
return -1
endi
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 where f1 > 2 group by f1 having avg(f1) > 0 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f1 > 2 group by f1 having avg(f1) > 0 order by f1;
if $rows != 2 then
return -1
endi
...
...
@@ -1510,7 +1506,7 @@ if $data13 != 0.000000000 then
return -1
endi
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 where f2 > 2 group by f1 having avg(f1) > 0 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f2 > 2 group by f1 having avg(f1) > 0 order by f1;
if $rows != 2 then
return -1
endi
...
...
@@ -1539,7 +1535,7 @@ if $data13 != 0.000000000 then
return -1
endi
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 where f3 > 2 group by f1 having avg(f1) > 0 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f3 > 2 group by f1 having avg(f1) > 0 order by f1;
if $rows != 2 then
return -1
endi
...
...
@@ -1568,7 +1564,7 @@ if $data13 != 0.000000000 then
return -1
endi
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 where f2 > 3 group by f1 having avg(f1) > 0 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f2 > 3 group by f1 having avg(f1) > 0 order by f1;
if $rows != 1 then
return -1
endi
...
...
@@ -1585,15 +1581,15 @@ if $data03 != 0.000000000 then
return -1
endi
sql_error select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 where f2 > 3 group by f1 having avg(ts) > 0;
sql_error select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f2 > 3 group by f1 having avg(ts) > 0;
sql_error select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 where f2 > 3 group by f1 having avg(f7) > 0;
sql_error select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f2 > 3 group by f1 having avg(f7) > 0;
sql_error select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 where f2 > 3 group by f1 having avg(f8) > 0;
sql_error select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f2 > 3 group by f1 having avg(f8) > 0;
sql_error select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 where f2 > 3 group by f1 having avg(f9) > 0;
sql_error select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f2 > 3 group by f1 having avg(f9) > 0;
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 where f2 > 3 group by f1 having count(f9) > 0 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f2 > 3 group by f1 having count(f9) > 0 order by f1;
if $rows != 1 then
return -1
endi
...
...
@@ -1610,9 +1606,9 @@ if $data03 != 0.000000000 then
return -1
endi
sql
_error select avg(f1),spread(f1,f2,
tb1.f1) from tb1 where f2 > 3 group by f1 having last(f9) > 0;
sql
select avg(f1), spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f2 > 3 group by f1 having last(f9) > 0;
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 where f2 > 3 group by f1 having last(f2) > 0 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f2 > 3 group by f1 having last(f2) > 0 order by f1;
if $rows != 1 then
return -1
endi
...
...
@@ -1629,7 +1625,7 @@ if $data03 != 0.000000000 then
return -1
endi
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 where f2 > 3 group by f1 having last(f3) > 0 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f2 > 3 group by f1 having last(f3) > 0 order by f1;
if $rows != 1 then
return -1
endi
...
...
@@ -1646,7 +1642,7 @@ if $data03 != 0.000000000 then
return -1
endi
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 where f2 > 1 group by f1 having last(f3) > 0 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f2 > 1 group by f1 having last(f3) > 0 order by f1;
if $rows != 3 then
return -1
endi
...
...
@@ -1687,7 +1683,7 @@ if $data23 != 0.000000000 then
return -1
endi
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 where f2 > 1 group by f1 having last(f4) > 0 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f2 > 1 group by f1 having last(f4) > 0 order by f1;
if $rows != 3 then
return -1
endi
...
...
@@ -1728,7 +1724,7 @@ if $data23 != 0.000000000 then
return -1
endi
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 where f2 > 1 group by f1 having last(f5) > 0 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f2 > 1 group by f1 having last(f5) > 0 order by f1;
if $rows != 3 then
return -1
endi
...
...
@@ -1769,7 +1765,7 @@ if $data23 != 0.000000000 then
return -1
endi
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 where f2 > 1 group by f1 having last(f6) > 0 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f2 > 1 group by f1 having last(f6) > 0 order by f1;
if $rows != 3 then
return -1
endi
...
...
@@ -1811,17 +1807,17 @@ if $data23 != 0.000000000 then
endi
sql_error select avg(f1),spread(f1
,f2,
tb1.f1),f1,f2 from tb1 where f2 > 1 group by f1 having last(f6) > 0;
sql_error select avg(f1),spread(f1
),spread(f2),spread(
tb1.f1),f1,f2 from tb1 where f2 > 1 group by f1 having last(f6) > 0;
sql_error select avg(f1),spread(f1
,f2,
tb1.f1),f1,f6 from tb1 where f2 > 1 group by f1 having last(f6) > 0;
sql_error select avg(f1),spread(f1
),spread(f2),spread(
tb1.f1),f1,f6 from tb1 where f2 > 1 group by f1 having last(f6) > 0;
sql_error select avg(f1),spread(f1
,f2,
tb1.f1),f1,f6 from tb1 where f2 > 1 group by f1,f2 having last(f6) > 0;
sql_error select avg(f1),spread(f1
),spread(f2),spread(
tb1.f1),f1,f6 from tb1 where f2 > 1 group by f1,f2 having last(f6) > 0;
sql_error select avg(f1),spread(f1
,f2,
tb1.f1),f1,f6 from tb1 where f2 > 1 group by f1,id1 having last(f6) > 0;
sql_error select avg(f1),spread(f1
),spread(f2),spread(
tb1.f1),f1,f6 from tb1 where f2 > 1 group by f1,id1 having last(f6) > 0;
sql_error select avg(f1),spread(f1
,f2,
tb1.f1),f1,f6 from tb1 where f2 > 1 group by id1 having last(f6) > 0;
sql_error select avg(f1),spread(f1
),spread(f2),spread(
tb1.f1),f1,f6 from tb1 where f2 > 1 group by id1 having last(f6) > 0;
sql select avg(f1),
spread(f1,f2,
tb1.f1) from tb1 where f2 > 1 and f2 < 4 group by f1 having last(f6) > 0 order by f1;
sql select avg(f1),
spread(f1), spread(f2), spread(
tb1.f1) from tb1 where f2 > 1 and f2 < 4 group by f1 having last(f6) > 0 order by f1;
if $rows != 2 then
return -1
endi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录