Postado Janeiro 15, 2021 4 anos Qual o motivo deste tópico? Gostaria de ajuda para entender o que precisa ser ajustado no PHPMYADMIN. Está surgindo algum erro? Se sim coloque-o aqui. Citar [22:13:18.179] mysql_real_query(): SELECT unitedItems.serial, COUNT(1) AS duplicatesCount FROM (SELECT serial FROM `player_items` UNION ALL SELECT serial FROM `player_depotitems` UNION ALL SELECT serial FROM `tile_items`) unitedItems GROUP BY unitedItems.serial HAVING COUNT(1) > 1; - MYSQL ERROR: Unknown column 'serial' in 'field list' (1054) Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
Postado Janeiro 16, 2021 4 anos Solução Em 15/01/2021 em 22:21, ferizk disse: Qual o motivo deste tópico? Gostaria de ajuda para entender o que precisa ser ajustado no PHPMYADMIN. Está surgindo algum erro? Se sim coloque-o aqui. Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. Acesso no seu phpmyadmin/database Excluir tabela player_items e player_depotitems Adicionar consultas CREATE TABLE `player_items` ( `player_id` INT NOT NULL, `pid` INT NOT NULL DEFAULT 0, `sid` INT NOT NULL DEFAULT 0, `itemtype` INT NOT NULL DEFAULT 0, `count` INT NOT NULL DEFAULT 0, `attributes` BLOB NOT NULL, `serial` VARCHAR(255) NOT NULL, KEY (`player_id`), UNIQUE (`player_id`, `sid`), FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE ) ENGINE = InnoDB; CREATE TABLE `player_depotitems` ( `player_id` INT NOT NULL, `sid` INT NOT NULL COMMENT 'any given range, eg. 0-100 is reserved for depot lockers and all above 100 will be normal items inside depots', `pid` INT NOT NULL DEFAULT 0, `itemtype` INT NOT NULL, `count` INT NOT NULL DEFAULT 0, `attributes` BLOB NOT NULL, `serial` VARCHAR(255) NOT NULL, KEY (`player_id`), UNIQUE (`player_id`, `sid`), FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE ) ENGINE = InnoDB;
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.