UPDATE cell value if a pair matches
问题 I am using luasql. I have two tables of this type: IPINFO CREATE TABLE `ipstats` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `ip` VARCHAR(15) NOT NULL, `last_used` DATETIME NOT NULL DEFAULT '1981-09-30 00:00:00', PRIMARY KEY (`id`), UNIQUE INDEX `ip` (`ip`) ) COLLATE='utf8_general_ci' ENGINE=MyISAM ROW_FORMAT=DEFAULT and another table ipnstats: CREATE TABLE `ipnstats` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `ipstats_id` INT(10) UNSIGNED NOT NULL, `nick` VARCHAR(32) NOT NULL,