MySql 查找同一列中具有相同值的多行
我在数据库中记录 IP 地址,并且想查看彼此具有相同 IP 地址的帐户。我只想显示具有多个 IP 地址的结果。我优先希望它按使用最多的 IP 地址排序(即,如果我有 30 个以 127.0.0.1 作为我的 ip 的帐户,我宁愿拥有属于 192.168.1.123 的高于 10ip 的地址)。
我该如何编写这个查询?我正在使用mysql
I record IP addresses in my DB and i want to look at accounts that have the same IP address as eachother. I'd like to show only results with more then one IP addresses. I preferentially would like it sorted by IP addressed used the most (IE if i have 30accounts with 127.0.0.1 as my ip i rather have that higher then 10ip address that belong to 192.168.1.123).
How do i write this query? I am using mysql
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)