I'm using a compiled SQLiteStatement
with transactions in optimizing SQLite transactions but I'm reading the documentation for the execute
function:
Execute this SQL statement, if it is not a SELECT / INSERT / DELETE / UPDATE, for example CREATE / DROP table, view, trigger, index etc.
This seems to imply that this function should not be used with SELECT / INSERT / DELETE / UPDATE
statements, but I have code that uses it with an insert and works.
I'm aware of executeInsert
and the other methods, but executeUpdateDelete
is not available in my API level, so can I use execute
?
Also if I don't need the last insert id or the number of rows affected should I use execute
instead of executeInsert
and etc., in other words is it more efficient?