mysql计算订单时间、订单数量
答案:1 悬赏:40 手机版
解决时间 2021-03-22 06:45
- 提问者网友:玫瑰园
- 2021-03-21 14:03
mysql计算订单时间、订单数量
最佳答案
- 五星知识达人网友:怀裏藏嬌
- 2021-03-21 15:16
mysql 怎么统计七天内的订单,和每日的订单
select count(distinct user_id)
from
(select user_id from db_amazon.tbl_order where `date` = ...
union all
select user_id from db_jd.tbl_order where `date` = ...
union all
select user_id from db_taobao.tbl_order where `date` = ...
)
select count(distinct user_id)
from
(select user_id from db_amazon.tbl_order where `date` = ...
union all
select user_id from db_jd.tbl_order where `date` = ...
union all
select user_id from db_taobao.tbl_order where `date` = ...
)
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯