我有Java代码,包含oracle insert,update等语句,同时执行java程序执行oracle语句。我需要知道在oracle数据库中有什么问题。我怎样才能实现它??
try {
sql = "SELECT DISTINCT Enquiry_PrimaryDetailsId\n"
+ "FROM enquiry_revisiondetails erevision\n"
+ "WHERE ActiveCode=1 AND Enquiry_RevisionDetailsId NOT IN (SELECT Enquiry_RevisionDetailsId FROM quotationprimary );";
proc = dao.prepareCall(sql);
System.out.println(proc);
rs = dao.executePreparedCall(proc);
while (rs.next()) {
Enquiryentry enquiryentry = new Enquiryentry();
enquiryentry.setEnquiry_primarydetailsid(rs.getString("Enquiry_PrimaryDetailsId"));
enquirylist.add(enquiryentry);
}
} catch (Exception e) {
e.printStackTrace();
} finally {
dao.releaseAll();
}
这是我的Java编码,我必须知道在oracle上运行的语句。