日期:2014-05-18  浏览次数:20587 次

DAO设计时运行测试类程序出现以下异常?
[size=11px]D:\mldnwebdemo\WEB-INF\classes>java cn.mldn.lxh.dao.test.TestDAOInsert
Exception in thread "main" 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 'sql FROM emp WHERE empno=
1000' at line 1

求解程序运行时出现了上面的异常,可能是哪里出了错误?

------解决方案--------------------
SQL语句写错了。把你的SQL语句贴出来看看。
------解决方案--------------------
+1
探讨
SQL语句写错了。把你的SQL语句贴出来看看。