2013年4月1日
摘要: 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 阅读全文
posted @ 2013-04-01 22:31 it_code 阅读(373) 评论(0) 推荐(0) 编辑