PreparedStatement的用法

一个PreparedStatement是从java.sql.connection对象和所提供的sql字符串获得的,sql字符串中包含问号(?),这些问号标明变量的位置,而后提供变量的值,最后执行语句,例如: String sql = "select id,name from student where id=? andname=?";java PreparedStatement ps =conn.
相关文章
相关标签/搜索