Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Android 中创建 SQLite 数据库时,是否可以从平面文件中加载表创建脚本?
我将有多个表和我在网上看到的所有使用 SQLite 帮助程序类的示例,包括 Java 文件中的脚本文本,我不想弄乱我的类。
是的。与从资产(https://gist.github.com/1271795)复制文件一样,您可以在新创建的 SQLiteDatabase 上读取文件并执行命令。