What is the difference between db.execSQL() method and activityObject.managedQuery() method in android ?
What is the difference between db.execSQL() method and activityObject.managedQuery() method in android ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
managedQuery(...)is a generic query mechanism which can be used for a variety of ‘database’ objects that haveContentProviders. This can include SQLite databases, phone contacts etc etc. It can only be used to ‘query’ for data and not make changes to the database.db.execSQL(...)is a method call directly on a SQLite database and can be used to perform any SQL operation. This means not only can it ‘query’ (SELECT) data, but it can be used to create, alter, drop tables as well as insert, delete rows etc.