hi, i just imported ms access to mysql (tables) and now trying to rewrite queries.
can you help me with mysql syntax with these two:
SELECT ZIPLIST.ZIP, ZIPLIST.CITY, ZIPLIST.STATE, ZIPLIST.COUNTY AS ZIPLIST_COUNTY, SNOWLOAD.S, SNOWLOAD.W, SNOWLOAD.Ss, SNOWLOAD.S1, SNOWLOAD.I1, SNOWLOAD.I2
FROM SNOWLOAD, ZIPLIST
WHERE (((ZIPLIST.STATE)=[snowload].[st]) AND ((ZIPLIST.COUNTY)=[snowload].[county]));
it gives me error 1064.
SELECT ZIPLIST.ZIP, ZIPLIST.CITY, ZIPLIST.STATE, ZIPLIST.COUNTY AS ZIPLIST_COUNTY, SNOWLOAD.S, SNOWLOAD.W, SNOWLOAD.Ss, SNOWLOAD.S1, SNOWLOAD.I1, SNOWLOAD.I2
FROM SNOWLOAD, ZIPLIST
WHERE (((ZIPLIST.ZIP)=[enter zip code]) AND ((ZIPLIST.STATE)=[snowload].[st]) AND ((ZIPLIST.COUNTY)=[snowload].[county]));
thanks.
can you help me with mysql syntax with these two:
SELECT ZIPLIST.ZIP, ZIPLIST.CITY, ZIPLIST.STATE, ZIPLIST.COUNTY AS ZIPLIST_COUNTY, SNOWLOAD.S, SNOWLOAD.W, SNOWLOAD.Ss, SNOWLOAD.S1, SNOWLOAD.I1, SNOWLOAD.I2
FROM SNOWLOAD, ZIPLIST
WHERE (((ZIPLIST.STATE)=[snowload].[st]) AND ((ZIPLIST.COUNTY)=[snowload].[county]));
it gives me error 1064.
SELECT ZIPLIST.ZIP, ZIPLIST.CITY, ZIPLIST.STATE, ZIPLIST.COUNTY AS ZIPLIST_COUNTY, SNOWLOAD.S, SNOWLOAD.W, SNOWLOAD.Ss, SNOWLOAD.S1, SNOWLOAD.I1, SNOWLOAD.I2
FROM SNOWLOAD, ZIPLIST
WHERE (((ZIPLIST.ZIP)=[enter zip code]) AND ((ZIPLIST.STATE)=[snowload].[st]) AND ((ZIPLIST.COUNTY)=[snowload].[county]));
thanks.