简体   繁体   中英

How do I extract data from a Word document into a MySQL table?

I have a set of word documents that contains trivia questions in a question/answer format. I want to be able to extract these from the word document into a database format such as JSON, CSV, or MySQL with a question column and an answer column. How would I go about doing this? (Script?)

The best solution will be to parse the .doc file and store it in comma separated file and then you can import it in MYSQL. The parsing depends on the format(delimiters used) of your word document file.

可能会有点晚,但是您可以将单词表复制到excel,然后使用https://convertexcel.net/将其转换为JSON,CSV或HTML

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM