![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 24 Pomógł: 0 Dołączył: 23.12.2006 Ostrzeżenie: (0%) ![]() ![]() |
mam cos takiego:
select 1 union select 2 union select 3 kiedy kazdy select uruchamiam osobno to suma rekordow jest 128 ale kiedy wykonam wszystkie 3 selecty z unionami to mam 104 wyniki. co sie dzieje? powinno tez byc 128 !? wklejam ten select - jest dosc skomplikowany, ale poszczegolne selecty testowalem i chodza bardzo dobrze, a wspolnie nie.
-------------------- http://przygodowki.net - Serwis dla miłośników przygodówek
http://kostka-rubika.web.iq.pl - Kostka Rubika dla początkujących |
|
|
![]()
Post
#2
|
|
![]() Grupa: Moderatorzy Postów: 36 557 Pomógł: 6315 Dołączył: 27.12.2004 ![]() |
pewnie ciezko zajrzec do manuala
http://dev.mysql.com/doc/refman/5.0/en/union.html ? Cytat The default behavior for UNION is that duplicate rows are removed from the result. The optional DISTINCT keyword has no effect other than the default because it also specifies duplicate-row removal. With the optional ALL keyword, duplicate-row removal does not occur and the result includes all matching rows from all the SELECT statements.
-------------------- "Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista "Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 12.06.2025 - 22:28 |