Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [SQL] Wyciagniecie unikatowego pola z bazy
AndyPSV
post
Post #1





Grupa: Zarejestrowani
Postów: 393
Pomógł: 5
Dołączył: 6.02.2003
Skąd: The.Luciferian.Doctrine.p
df

Ostrzeżenie: (30%)
XX---


  1. SELECT DISTINCT mail FROM biz_u,buzzpek_u,chcur_u,clubkr_u,cocain_u,comixxy_u,drug_u,investor_u,mha_u,power_u,redkr_u,xernt_u


nie dziala; tj

  1. SQL 1052 :: Column 'mail' in field list is ambiguous
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 559
Pomógł: 6315
Dołączył: 27.12.2004




Walisz bezmyslnie te posty jeden za drugim, zamist spokojnie zajrzec do dokumetnacji :/

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.

Tak trudbno?
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 15.10.2025 - 12:27