After reading the docs, it seems the the function sqlite3_column_count does all the same, but doesn’t have the restrictions that sqlite3_data_count has.
Why would I ever want to use sqlite3_data_count over sqlite3_column_count? thanks!
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.
sqlite3_data_countreturns the number of values (columns) of the currently executing statement.With no results it returns 0.
sqlite3_column_counton the other hand, returns always the number of columns, with or without results.Which one you’ll use depends on whether you must get the number of columns or not.