PreparedStatement的用法

一個PreparedStatement是從java.sql.connection對象和所提供的sql字符串獲得的,sql字符串中包含問號(?),這些問號標明變量的位置,而後提供變量的值,最後執行語句,例如: String sql = "select id,name from student where id=? andname=?";java PreparedStatement ps =conn.
相關文章
相關標籤/搜索