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

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo