java - Explanation of execSQL (String sql) function of SQLiteDatabase -


what execsql (string sql) function belongs sqlitedatabase do? i've read android documentation not getting it..please explain in easy words.

thanks in advance.

i know you've said you've read android documentation, i'm going link again it's pretty explained there. taken android documentation here

public void execsql (string sql)

execute single sql statement not select or other sql statement returns data.

it has no means return data (such number of affected rows). instead, you're encouraged use insert(string, string, contentvalues), update(string, contentvalues, string, string[]), et al, when possible.

in other words, it's used execute queries don't return data, such updating database's tuples or inserting new tuples database.


Popular posts from this blog

Apache NiFi ExecuteScript: Groovy script to replace Json values via a mapping file -

python 3.x - PyQt5 - Signal : pyqtSignal no method connect -