MySQL Forums
Forum List  »  Other Migration

Re: MySQL 4 to MySQL 5 - SQL syntax question.
Posted by: Scott Gurley
Date: April 22, 2008 08:17AM

Oh, I should mention that

SELECT users.name, department.name as department, countries.name as country FROM (users, departments) LEFT JOIN countries on users.country = countries.uid

Could also be made good by adding a comma:

SELECT users.name, department.name as department, countries.name as country FROM users, departments, LEFT JOIN countries on users.country = countries.uid

Options: ReplyQuote


Subject
Views
Written By
Posted
11300
September 08, 2006 07:46AM
Re: MySQL 4 to MySQL 5 - SQL syntax question.
4060
April 22, 2008 08:17AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.