Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL] JOIN, LEFT, RIGHT, FULL.
cykcykacz
post
Post #1





Grupa: Zarejestrowani
Postów: 550
Pomógł: 9
Dołączył: 29.05.2009
Skąd: Ostrów Wielkopolski

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


Witam nie wiem dlaczego ale jak chcę zrobić FULL JOIN dostaję komunikat:
Kod
#1054 - Unknown column 'articles.i_id' in 'field list'

LEFT
  1. SELECT articles.i_name, articles.i_id, users.id
  2. FROM articles
  3. LEFT JOIN users ON articles.i_id = users.id
  4. ORDER BY articles.i_name;

RIGHT
  1. SELECT articles.i_name, articles.i_id, users.id
  2. FROM articles
  3. RIGHT JOIN users ON articles.i_id = users.id
  4. ORDER BY articles.i_name;

FULL:
  1. SELECT articles.i_id, articles.i_name, users.id
  2. FROM articles
  3. FULL JOIN users ON articles.i_id = users.id
  4. ORDER BY articles.i_name;


I w momęcie kiedy robię FULL JOIN dostaję komunikat który podałem na początku mojego posta.
Dziwne nie?(przynajmniej dla mnie smile.gif)
Go to the top of the page
+Quote Post

Posty w temacie


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 Aktualny czas: 19.08.2025 - 13:39