I’m wondering how to bind an NSNumber object into a sqlite3 query:
const char *sql = "select name from myTable where section_id=1 order by name ASC";
I have a NSNumber object called ‘nmbr’ and want to assign its value to the section id..
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.
Try this:
Remember: you should deal with error return codes. For the sake of simplicity I am ignoring them here.