看板 java 關於我們 聯絡資訊
Delete 的完整語法... DELETE FROM table_name WHERE column_name = some_value 你好像少了些什麼吧?... 不然你就換 executeUpdate 試看看嚕 ====== PreparedStatement pstmt = con.prepareStatement( "INSERT INTO Table (Col1) VALUES( ? )"); pstmt.setBinaryStream(1,in,(int)len); pstmt.executeUpdate(); ====== 我最近都是像這樣寫, 不過我是連 SQLSERVER 就是了... ※ 引述《newbornme (我愛你我愛妳)》之銘言: : 資料庫連線成功 : DELETE FROM testtest // print SQL command : 資料庫連結錯誤,請檢查資料庫狀態. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 163.25.148.49 ※ 編輯: ogamenewbie 來自: 163.25.148.49 (04/08 01:58) ※ 編輯: ogamenewbie 來自: 163.25.148.49 (04/08 02:10)