search

Home  >  Q&A  >  body text

将一个“单词表.txt(包含单词和意思)”导入到Android Studio中的SQLite中,要如何实现?

刚接触SQLite,求指导。

阿神阿神2772 days ago588

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 17:51:25

    It’s almost the same as mysql.

    There is a sqlite3.exe command in the android sdk, which can directly operate the sqlite3 database.

    Create database

    create table xxx(word text, mean text)

    If the file contains sql, use

    .read sql文件

    If the data is separated in the file, use

    .separator 列分隔符 
    .import 数据文件

    reply
    0
  • Cancelreply