我尝试执行此功能,但我得到了一个例外。任何人都可以告诉我出了什么问题?
public static void insertTransaction(String St_Id,String Bk_Id,String issuedate,String returndate)//throws Exception
{
getConnection();
try{
select.executeUpdate("insert into TRANSACTION values('"+St_Id+"','"+Bk_Id+"',to_date('"+issuedate+"','DD-MON-YYYY'),to_date('"+returndate+"','DD-MON-YYYY')");
}catch(Exception e){
e.printStackTrace();
System.err.println("In Excpetion of insert");
}
}