我有这张桌子:
SET NAMES utf8;
SET time_zone = '+00:00';
CREATE TABLE `app_log` (
`ID` int(11) unsigned NOT NULL AUTO_INCREMENT,
`serial` int(11) NOT NULL,
`dataEntryIP` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`dataEntryUA` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`domain` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`timeStamp` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`ID`),
KEY `serial` (`serial`)
) ENGINE=InnoDB AUTO_INCREMENT=4328 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
可能的数据样本如下:
INSERT INTO `app_log` (`ID`, `serial`, `dataEntryIP`, `dataEntryUA`, `domain`, `timeStamp`) VALUES
(6,33605,'2.5.29.18','Google Chrome','www.domain1.com','2017-08-18 18:44:23'),
(7,33606,'8.102.167.213','Google Chrome','domain1.com','2017-08-18 18:45:48'),
(8,33607,'8.24.10.14','Google Chrome','www.domain0.com','2017-08-18 18:58:13'),
(9,33608,'8.24.10.14','Google Chrome','domain0.com','2017-08-18 18:58:13'),
(10,33609,'8.24.10.14','Google Chrome','domain1.com','2017-08-18 19:06:44'),
(11,33610,'8.24.10.14','Google Chrome','www.domain0.com','2017-08-18 19:06:44'),
(12,33611,'7.10.14.11','Google Chrome','domain2.com','2017-08-18 19:12:48'),
(13,33612,'7.10.14.11','Google Chrome','www.domain2.com','2017-08-18 19:12:48'),
(14,33613,'9.45.21.18','Google Chrome','domain3.com','2017-08-18 19:18:10');
现在我需要选择使用了多个域的任何 IP,对于此示例,它是:8.24.10.14 因为它使用了两个域:domain0 和 domain1
我该怎么做?
非常感谢