pingLeeQuan
Programmer
I have been trying to get this working for a while but with no use. I consulted the manual and even the JDBC manual which was developed by Mysql and all say the same think. Every time i try to use the phrase "EXIST" or "IN" or "NOT IN" or even using sub query, it fails telling me that i have a syntax error near .... (the above options).
I am using Java and employing the JDBC driver from Mysql.
The mysql server runs 3.2.3
I test all queries in Mysql Control Center (the one that i use to test my SQL statements) before deploying in code
Sample sql
SELECT PersonName FROM tPerson t where t.PersonName EXISTS (select tPersonName from tPerson_Exception)
The error is
" You have an error in your SQL syntax near 'EXISTs (select PersonName from tPerson_Exception)' at line 1"
The manual for all 3 products say they should work but I cannot get any of them to work.
What am I doing wrong?
Thanks in advance for your help
I am using Java and employing the JDBC driver from Mysql.
The mysql server runs 3.2.3
I test all queries in Mysql Control Center (the one that i use to test my SQL statements) before deploying in code
Sample sql
SELECT PersonName FROM tPerson t where t.PersonName EXISTS (select tPersonName from tPerson_Exception)
The error is
" You have an error in your SQL syntax near 'EXISTs (select PersonName from tPerson_Exception)' at line 1"
The manual for all 3 products say they should work but I cannot get any of them to work.
What am I doing wrong?
Thanks in advance for your help