![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 190 Pomógł: 2 Dołączył: 30.11.2009 Ostrzeżenie: (10%) ![]() ![]() |
witam, mam takie zapytanie
efekt w pma #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE f.forum_id = t.forum_id ORDER BY t.topic_start_date DESC LIMIT 0, 1' at line 3 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 855 Pomógł: 145 Dołączył: 17.07.2008 Skąd: High Memory Area Ostrzeżenie: (0%) ![]() ![]() |
LEFT (RIGHT) JOIN wymaga warunku złączenia w ON
Kod SELECT f.*, t.* FROM forums f
LEFT JOIN topics t ON f.forum_id = t.forum_id ORDER BY t.topic_start_date DESC LIMIT 0, 1 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 5.10.2025 - 02:29 |