Android Question Error when trying to insert data (RDC)

dhernandez

Active Member
Licensed User
Longtime User
Good day colleagues.
I am working with RDC, but when trying to insert some data to my MySQL I mark the following error:

Code: Copy
java.sql.SQLException: Can not issue data manipulation statements with executeQuery().

My query is this;

Code: Copy
sql.insert_RDC=INSERT INTO TablaRDC(nombre, correo, ocupacion) VALUES (Sunday, [email protected], Programmer)

My code is this:
Code: Copy
Sub RInsert(Name As String)
    Dim cmd As DBCommand
    cmd.Initialize
    cmd.Name="insert_RDC"
    cmd.Parameters= Array As Object(Name)
    ReqManager.ExecuteQuery(cmd, 0, Null)
end sub
 
Excelente Erel, era eso que estaba mal... ya verifiqué y realicé los ajustes.

Gracias Erel
 
Upvote 0
Back
Top