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:

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

My query is this;

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

My code is this:
B4X:
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
 

dhernandez

Active Member
Licensed User
Longtime User
Excelente Erel, era eso que estaba mal... ya verifiqué y realicé los ajustes.

Gracias Erel
 
Upvote 0
Top