Hello, I have a query SQL
implemented in JAVA in which I need to insert the values MTILM, MVisual, MVerba, MAR, MTeorico whose data is of type String, here I leave an example
connectionDB.executeInsertUpdate("INSERT INTO 'data_processed'('id', 'ti_log_mat', 'ea_visual', 'ea_verbal', 'ea_act_ref', 'ea_teorico', 'class') VALUES(" + cond1.getInt(1) + ",'" + MTILM + "','" + MVisual + "','" + MVerbal + "','" + MAR + "','" + MTeorico + "',0);");
But it throws me the following Error:
at com.mysql.jdbc.StatementImpl.executeBatch (StatementImpl.java:1198) at phase1_classification.ConnectionDB.executeInsertUpdate (ConnectionDB.java:65) at phase1_classification.DataProcessed.QuizPrePro (DataProcessed.java:270) at fase1_clasificacion.DataProcessed.main (DataProcessed.java:46) at phase1_classification.Face1_Classification.main (Face1_Classification.java30)
Because something is wrong I suppose that in the concatenation of the data, could someone tell me what I have poorly implemented?