I have a xls file with a bunch of data in a table. I want to be able to use sql with this in my ios app. How can I get it to a .db file or whatever I need for my app? Do I have to manually make the sql tables?
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.
Export the xls file to .csv text file. Create a .db file using sqlite at the command line. Create the tables at the command line. Set the sqlite separator to “,” and import your .csv file. Add the .db file to your xcode project. link to the sqlite3 framework in xcode.
Or Core Data might be easier.