Cytat(Pyton_000 @ 16.06.2019, 14:51:30 )

Pokaż przykład co masz i co byś chciał mieć
Ale tu nie ma czego pokazywać, schemat tabeli wygląda tak:
CREATE TABLE IF NOT EXISTS `explayers` (
`miejsce` int(11) DEFAULT NULL,
`liga` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
`poziom` int(11) DEFAULT NULL,
`tag` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`nick` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
`ranga` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`donated` int(11) DEFAULT NULL,
`sdonated` int(11) DEFAULT NULL,
`rdonated` int(11) DEFAULT NULL,
`received` int(11) DEFAULT NULL,
`roznica` int(11) DEFAULT NULL,
`puchary` int(11) DEFAULT NULL,
`warstars` int(11) DEFAULT NULL,
`swarstars` int(11) DEFAULT NULL,
`rwarstars` int(11) DEFAULT NULL,
`gamedon` int(22) DEFAULT NULL,
`awin` int(11) DEFAULT NULL,
`dwin` int(11) DEFAULT NULL,
`th` int(3) DEFAULT NULL,
`elixir` int(22) DEFAULT NULL,
`selixir` int(22) DEFAULT NULL,
`uelixir` int(22) DEFAULT NULL,
`gold` int(22) DEFAULT NULL,
`sgold` int(22) DEFAULT NULL,
`ugold` int(22) DEFAULT NULL,
`dark` int(22) DEFAULT NULL,
`sdark` int(22) DEFAULT NULL,
`udark` int(22) DEFAULT NULL,
`cwls` int(11) DEFAULT NULL,
`scwl` int(11) DEFAULT NULL,
`rcwl` int(11) DEFAULT NULL,
`cg` int(11) DEFAULT NULL,
`scg` int(11) DEFAULT NULL,
`rcg` int(11) DEFAULT NULL,
`cc` int(2) DEFAULT NULL,
`gstar` int(4) DEFAULT NULL,
`aktualizacja` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`data` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`ppc` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`ppd` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`pk` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
ppc => pierwsze pojawienie czas - godzina:minuta;
Sezon w grze trwa około 30 dni i wtedy resetują się statystyki, więc i ja opróżniam tabelę, ale chcę jakoś zatrzymać pierwsze pojawienie, bo to oznacza kiedy gracz przyszedł do nas.
Jednak właśnie uświadomiłem sobie, że mogę to zrobić inaczej, biorąc dane z tabel z poprzednich miesięcy/sezonów i użyć UPDATE, więc uważam temat za zamknięty, dzięki