Error:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: 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 '? AND games.GAMEDATE < ? AND ( games.HOMETEAM = ? OR games.AWAYTEAM = ? )' at line 1
MySQL version: 5.1.32
IDE: MyEclipse 6.0
MYSQL connector version: 5.0.8
Actual query JVM tries to run is : SELECT * FROM imageDATA WHERE imageDATE > '2009-12-01' AND imageDATE < '2009-12-31' AND ( HOME = 'India' OR AWAY = 'India' )
This runs fine if I try it on cmd.
Need help!!!
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: 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 '? AND games.GAMEDATE < ? AND ( games.HOMETEAM = ? OR games.AWAYTEAM = ? )' at line 1
MySQL version: 5.1.32
IDE: MyEclipse 6.0
MYSQL connector version: 5.0.8
Actual query JVM tries to run is : SELECT * FROM imageDATA WHERE imageDATE > '2009-12-01' AND imageDATE < '2009-12-31' AND ( HOME = 'India' OR AWAY = 'India' )
This runs fine if I try it on cmd.
Need help!!!