execute(String sql)
引數說明:Connection conn = …… //省略部分程式碼 Statement st = conn.createStatement(); String sql = "DELETE FROM users WHERE username='xiaoli'"; //定義刪除資料的SQL語句 Boolean bool; bool = st.execute(sql); //執行SQL語句 System.out.println(bool); //沒有返回結果集所以列印false