You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select from_unixtime(create_time,'%Y-%m-%d') as t_day,count(*) as cnt
from t_a
where`type`=1group by t_day
union allselect from_unixtime(create_time,'%Y-%m-%d') as t_day,count(*) as cnt
from t_a
where`type`=3group by t_day
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Refer to https://asktug.com/t/topic/37509
CREATE TABLE
t_a
(id
int(10) unsigned NOT NULL AUTO_INCREMENT,type
tinyint(4) NOT NULL,create_time
int(11) NOT NULL,PRIMARY KEY (
id
))
select * from t_a
2. What did you expect to see? (Required)
3. What did you see instead (Required)
t_day cnt
2020-09- 1
2020-09- 1
2020-09- 1
2020-08- 1
2020-08- 1
4. What is your TiDB version? (Required)
4.0.5 master
The text was updated successfully, but these errors were encountered: