JDBC執行SQL語句(statement對象)

※ 執行SQL語句(java中默認執行commit) 1.execute() 返回的結果boolean,boolean表示是否有結果集返回(除select外爲false),有爲true,其餘狀況都爲false 2.executeUpdate() 返回的結果int,int表是對數據庫影響的行計數 3.executeQuery() 返回的結果resultSet,通常狀況存放的是select查詢的結果集
相關文章
相關標籤/搜索