本帖最后由 李维强-15级 于 2019-9-17 00:15 编辑
浏览量sql
[SQL] syntaxhighlighter_viewsource syntaxhighlighter_copycode
SELECT ip,CONVERT(VARCHAR(100),visitTime,23) as vtime
from t_visitlog
GROUP BY ip,CONVERT(VARCHAR(100),visitTime,23)
ORDER BY CONVERT(VARCHAR(100),visitTime,23) DESC
每天合计访问人数
[SQL] syntaxhighlighter_viewsource syntaxhighlighter_copycode select COUNT(vtime) as VisitPeople,vtime from
(
SELECT CONVERT(VARCHAR(100),visitTime,23) as vtime
from t_visitlog
GROUP BY ip,CONVERT(VARCHAR(100),visitTime,23)
) a
GROUP BY a.vtime
ORDER BY vtime DESC
访问,发起成交,成交数据汇总
[SQL] syntaxhighlighter_viewsource syntaxhighlighter_copycode
select COUNT(vtime) as VisitPeople,vtime from
(
SELECT CONVERT(VARCHAR(100),visitTime,23) as vtime
from t_visitlog
GROUP BY ip,CONVERT(VARCHAR(100),visitTime,23)
) a
GROUP BY a.vtime
ORDER BY vtime DESC
SELECT COUNT(wxprepayid) as PrePayTime FROM t_o_WxPrePay
SELECT count(orderid) as orderNum FROM t_o_order
|