Reputation: 1
I want to insert data of CSV file from assets folder in SQLite in android. How do I accomplish the task effectively and efficiently?
Upvotes: 0
Views: 385
Reputation: 3122
use FireFox Browser and install SQLITE-MANAGER plug-in
follow few steps.
1.create new database with appropriate name
2.Goto>file> select import
3.now Goto select file navigate to your csv file and select that file
4.select first raw as column name if you set in csv.
5.create it. now save this file ad DB and use it in your project
6.you file this kind of window.
or you can do it programmatically
follow this link
Upvotes: 2