preStmt = conn.prepareStatement(personSQL,Statement.RETURN_GENERATED_KEYS);

 

 

 

要在personSQL后边添加Statement.RETURN_GENERATED_KEYS

posted on 2012-07-18 15:23  main方法  阅读(99)  评论(0编辑  收藏  举报