executeUpdate
public int executeUpdate(String sql,
int autoGeneratedKeys)
throws SQLExceptionSince:
1.4 getGeneratedKeys
public ResultSet getGeneratedKeys()
throws SQLExceptionSince:
1.4 我的机器win2000 mysql jdbc2.0 jdk1.4
执行正确
从报错情况看,应该是执行executeUpte过程出错,可能是语法问题
('aaa',''bbb')", 有两个引号,不知道是否是笔误,还是你的程序错了
public int executeUpdate(String sql,
int autoGeneratedKeys)
throws SQLExceptionSince:
1.4 getGeneratedKeys
public ResultSet getGeneratedKeys()
throws SQLExceptionSince:
1.4 我的机器win2000 mysql jdbc2.0 jdk1.4
执行正确
从报错情况看,应该是执行executeUpte过程出错,可能是语法问题
('aaa',''bbb')", 有两个引号,不知道是否是笔误,还是你的程序错了
楼上的意思是jdk1.4已经支持public int executeUpdate(String sql,
int autoGeneratedKeys)方法了。