Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> FULL JOIN, nie pobiera wartości z 2giej tabeli
gargamel
post 3.10.2011, 19:25:32
Post #1





Grupa: Zarejestrowani
Postów: 278
Pomógł: 35
Dołączył: 25.06.2010

Ostrzeżenie: (0%)
-----


Skleiłem zapytanie do postgresa, niby proste ale nie chce mi działać. Mianowicie nie pobiera danych z tabeli users_details mimo iż one tam są i odpowiadają wpisom w users_login.
  1. SELECT
  2. users_login.u_id AS u_id,
  3. users_login.u_account AS u_account,
  4. users_login.u_login AS u_login,
  5. users_details.u_first_name AS first_name,
  6. users_details.u_last_name AS last_name
  7. FROM
  8. users_login
  9. FULL JOIN
  10. users_details
  11. ON
  12. (users_login.u_id=users_details.u_id)
  13. WHERE
  14. users_login.u_account='smod'
  15. OR
  16. users_login.u_account='nmod';

Pomoże ktoś? Bo pomysły mi się pokończyły...


Edit - znalazłem dry.gif ciężko się myśli o tej porze. Sory za zamieszanie, temat do kosza. smile.gif

Ten post edytował gargamel 3.10.2011, 19:31:31
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 25.07.2025 - 07:54