Graham Anderson wrote:
My server has mysql:  version 3.23.58

// Performing SQL query

SELECT cities.city, regions.region, countries.country
 FROM cities
 JOIN subnets on subnets.cityid=subnets.cityid
                                  ^^^^^^^
Shouldn't that be

  JOIN subnets on subnets.cityid=cities.cityid?

 JOIN regions on subnets.regionid=regions.regionid
 JOIN countries on subnets.countryid=countries.countryid
 where subnets.subnetaddress='24.24.172'


this gives a syntax error:
#1064 - You have an error in your SQL syntax near 'on subnets.cityid=subnets.cityid
JOIN regions on subnets.regionid=regions.regi' at line


all the tables seem proper named and populated.
what could this be ?

g

Michael

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to