Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

com.mysql.jdbc.exceptions.MySQLSyntaxErrorException (2 replies)

$
0
0
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!!!

Viewing all articles
Browse latest Browse all 884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>