在一个 SQL 查询中获取 Uniqie 视图和视图
我想在单个查询中检索 uniqie 视图和视图。 我当前检索视图的查询看起来像这样,但我也想用它检索唯一的视图。
IP 地址字段称为 IP
SELECT `time` - `time` % 86400 AS Date, count(*) AS Views
FROM `bvcms_pageviews`
WHERE 1=1
GROUP BY Date
最好的问候
I would like to retrive uniqie views and views in a single query.
My current query to retrive views looks like this, but i would also like to retrieve unique views with it.
The field to the IP address is called IP
SELECT `time` - `time` % 86400 AS Date, count(*) AS Views
FROM `bvcms_pageviews`
WHERE 1=1
GROUP BY Date
Best regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
唯一IP查看数据?选择“Distinct”将有助于
http://www.sql-tutorial。 com/sql-distinct-sql-tutorial/
Unique IP view data? Selected 'Distinct' would help with this
http://www.sql-tutorial.com/sql-distinct-sql-tutorial/