How can I import data from ASCII (ISO/IEC 8859-1) to my Rails/PGSQL database?

后端 未结 3 1203
我寻月下人不归
我寻月下人不归 2020-12-08 12:23

I am trying to use data from the USDA found here: http://www.ars.usda.gov/Services/docs.htm?docid=23634

ASCII (8.6Mb) - This file contains the SR26 da

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-08 13:00

    Using the tips from @craig-ringer I've created a script to migrate the original USDA Nutrition Database files to postgreSQL.

    Is it very rough at the moment, but should help to get started.

    Check it out here: https://github.com/rlucha/usda-nutrition-database-migration

提交回复
热议问题