sql在数据库里面单独运行没有错,但在程序里面运行就报错: 30
syntaxerror,expectRPAREN,actualONON,pos352selectA.uli_ecgi_eci_fv,A.user_numnum1,A.nu...
syntax error, expect RPAREN, actual ON ON, pos 352
select A.uli_ecgi_eci_fv, A.user_num num1, A.num2, A.num3, B.num4, B.num5 from
(SELECT
A.uli_ecgi_eci_fv,
COUNT(A.mei_fv) user_num,
(CASE WHEN SUM(B.ttime)>20*60*60 and COUNT(A.mei_fv)>20 THEN '是' ELSE '否' END) num2 ,
(CASE WHEN SUM(B.ip1_len_fvSUM)>300*1000 THEN '是' ELSE '否' END) num3
FROM
tshark_mme_index A
LEFT JOIN 2G_flow B ON A.mei_fv = B.IMEI
GROUP BY
A.uli_ecgi_eci_fv) A
INNER JOIN
(SELECT
A.uli_ecgi_eci_fv,
COUNT(A.mei_fv) user_num,
(CASE WHEN SUM(B.ttime)>20*60*60 and COUNT(A.mei_fv)>20 THEN '是' ELSE '否' END) num4 ,
(CASE WHEN SUM(B.ip1_len_fvSUM)>300*1000 THEN '是' ELSE '否' END) num5
FROM
tshark_mme_index A
LEFT JOIN 3G_flow B ON A.mei_fv = B.IMEI
GROUP BY
A.uli_ecgi_eci_fv) B
ON A.uli_ecgi_eci_fv = B.uli_ecgi_eci_fv limit 0,20
com.alibaba.druid.sql.parser.ParserException: syntax error, expect RPAREN, actual ON ON, pos 352
有没有谁能帮我看看 展开
select A.uli_ecgi_eci_fv, A.user_num num1, A.num2, A.num3, B.num4, B.num5 from
(SELECT
A.uli_ecgi_eci_fv,
COUNT(A.mei_fv) user_num,
(CASE WHEN SUM(B.ttime)>20*60*60 and COUNT(A.mei_fv)>20 THEN '是' ELSE '否' END) num2 ,
(CASE WHEN SUM(B.ip1_len_fvSUM)>300*1000 THEN '是' ELSE '否' END) num3
FROM
tshark_mme_index A
LEFT JOIN 2G_flow B ON A.mei_fv = B.IMEI
GROUP BY
A.uli_ecgi_eci_fv) A
INNER JOIN
(SELECT
A.uli_ecgi_eci_fv,
COUNT(A.mei_fv) user_num,
(CASE WHEN SUM(B.ttime)>20*60*60 and COUNT(A.mei_fv)>20 THEN '是' ELSE '否' END) num4 ,
(CASE WHEN SUM(B.ip1_len_fvSUM)>300*1000 THEN '是' ELSE '否' END) num5
FROM
tshark_mme_index A
LEFT JOIN 3G_flow B ON A.mei_fv = B.IMEI
GROUP BY
A.uli_ecgi_eci_fv) B
ON A.uli_ecgi_eci_fv = B.uli_ecgi_eci_fv limit 0,20
com.alibaba.druid.sql.parser.ParserException: syntax error, expect RPAREN, actual ON ON, pos 352
有没有谁能帮我看看 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询