To insert data into sqlite table named mytable in android, I use the query:
db.execSQL("INSERT INTO MYTABLE VALUES('','"+name+"',NOW());");
I want to check if this query was successfully inserted into the table or not. In php (with mysql) you can easily do
if($result) echo 'success'; else echo 'not inserted';
But what is the equivalent code in android (with sqlite) to check if the query was successfully executed without errors ?
source share