I need a return value for an INSTERT query, to get the primary key with Auto-increment for this query
But i get an error
how to solve it?
B4X:
strSQL = $"INSERT INTO tbl_sessions (game, note, time,user,friends) OUTPUT Inserted.session_id VALUES (?,?,?,?,?)"$
result = con.ExecQuery2(strSQL, Array As Object(game,note,time,userID,jp.ToString))
But i get an error
java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
how to solve it?