gpt4 book ai didi

mysql - SQL 语法错误,我没有看到它

转载 作者:行者123 更新时间:2023-12-01 00:05:27 24 4
gpt4 key购买 nike

<分区>

我的查询有误。这是查询:

select HourTime, count(*) from
(
select substring(time,1,2) as HourTime, count(*) as ActivityCount
from htmp_cs368 a
group by HourTime
)htmp
union
(
select substring(time,1,2) as HourTime, count(*) as ActivityCount
from atmp_cs368 a
group by HourTime
)atmp
group by HourTime DESC

这是错误信息:

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that        corresponds to your MySQL server version for the right syntax to use near 'atmp
group by HourTime DESC' at line 12

谁能看出我的错误在哪里?我很感激。这也是一个更大的程序的一部分,因此是 java 标签。

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com