RE: [PHP-DB] Howto make a double LEFT JOIN
| From: | Rick Emery | Date: | Tue, 02 Oct 2001 20:19:58 +0000 |
| Subject: | RE: [PHP-DB] Howto make a double LEFT JOIN | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-12936@lists.php.net to get a copy of this message | ||
SELECT table1.id FROM table1 LEFT JOIN table2 ON table1.id=table2.id LEFT
JOIN table3 ON table2.id=table3.id
-----Original Message-----
From: Bas Jobsen [mailto:bas@startpunt.cc]
Sent: Tuesday, October 02, 2001 3:13 PM
To: Rick Emery; php-db@lists.php.net
Subject: Re: [PHP-DB] Howto make a double LEFT JOIN
> Remove the parentheses
> SELECT table1.id FROM table1 LEFT JOIN table2 LEFT JOIN table3 ON
> table2.id=table3.id ON table1.id=table2.id
I still got:
MySQL retourneerde: You have an error in your SQL syntax near 'LEFT JOIN
table3 ON
table2.id=table3.id ON table1.id=table2.id' at line 1