When I type into Sqlite
SELECT Count(*) FROM tabl;
it returns a number.
How do I use the C interface to obtain this number after preparing a statement?
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.
Open the database file, prepare the statement, make steps (i.e., if you have more than one row in results you have to fetch them one by one), extract column values, finalize the statement, close the database.
Something like this:
Use this code, look for all the API calls (open, prepare_v2, step, column, finalize).
If this is hard, then at first you should become familiar with C itself.