首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

Exception in thread "main" com.mysql.jdbc.exceptions.

2011-11-09 
DAO设计时运行测试类程序出现以下异常?[size11px]D:\mldnwebdemo\WEB-INF\classesjava cn.mldn.lxh.dao.

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语句贴出来看看。

热点排行