摘要:
PreparedStatement接口继承了Statement,所以statement所有的功能,PreparedStatement都会拥有。Statement实现查询:Connection con = null; Statement s = con.createStatement(); s.execute("sql");PreparedStatement实现查询:PreparedStatement ps = conn.prepareStatement("INSERT into employees values (?, ?, ?)");ps.setStr 阅读全文