java.sql.SQLException: ORA-00928: missing SELECT keyword. when inserting record to DB using JDBC
问题 I get an error when I try to insert some rows to a db. so here is the code try { String insertStmt = "INSERT into " + "MY_TABLE('RECORD_TYPE', 'FILE_TYPE', 'DATE', 'BATCH_NO', 'RECORD_COUNT')" + "VALUES(?, ?, ?, ?, ?);"; PreparedStatement pstmt = super.con.prepareStatement(insertStmt); pstmt.setString(1, input[0]); pstmt.setString(2, input[1]); pstmt.setString(3, input[2]); pstmt.setString(4, input[3]); pstmt.setString(5, input[4]); System.out.println("Insert rows : " + pstmt.executeUpdate())