mysql - 如何高效的识别出异地代充的设备
PHP中文网
PHP中文网 2017-04-17 15:31:04
0
2
549
PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
洪涛

Thanks for the invitation. Try using the find_in_set function

SELECT id FROM table WHERE find_in_set('EC:XX', mac) OR find_in_set('DD:XX', mac);
伊谢尔伦
SELECT mac FROM (
SELECT DISTINCT mac, username FROM ORDER
) AS tmp
GROUP BY mac
having count(1) > 1

I don’t know if there are any writing errors. There is no test, but I guess the performance will not be very good. After all, it involves the disintct and group by operations.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template