What does execSQL (String sql) function which belongs to SQLiteDatabase actually do? i've read android documentation for it but not getting it..Please someone explain it in easy words.
Thanks in advance.
|
I know you've said you've read the Android documentation, but I'm going to link to it again as it's pretty well explained there. Taken from the Android documentation here
In other words, it's used to execute any queries that don't return data, such as updating a database's tuples or inserting new tuples to the database. |
|||
|
execSQL runs a single SQL query on the SQLiteDatabase and doesn't return any data. So if you wanted to insert something, or update something and didn't expect any information in return you would use this command. |
|||
|