I have excel sheet on which I need to hit few queries. I have successfully accessed excel sheet in my project but now I have trouble in hitting queries on it because I need to write code fetch even a small column. Is there any way by that I can convert my excel sheet in sqlite database. As it will simplify my work. Excel sheet is too big with 29 sheets in it. It is impossible to manually enter those values.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
SQLite is a relational database format, excel is a spreadsheet. There is no direct relationship between the two for there to be a generic conversion tool.
You do not mention if you need the formulae or formatting. But you could use the code mentioned here, How to read excel sheets in android program.
Then it is up to you how you structure your sqlite database and save the values you've read.
You have a few practical options:
You can open the Excel file directly in the app, as IanNorton said
You can convert the Excel to a SQLite file first, and then drop and read that SQLite file in the app.
If you want to convert Excel to SQLite and query the SQLite DB in your app , use option #2. But if you just want to read an Excel file straight in your app, use option #1.