Loading CSV files into MySQL Workbench

后端 未结 6 682
旧巷少年郎
旧巷少年郎 2021-02-12 16:10

I have a lot of excel/ CSV files that I need to load into my db in MySQL Workbench (I\'m on Mac OS X). I\'ve searched around for a good walk-through or tutorial, but I haven\'t

6条回答
  •  面向向阳花
    2021-02-12 16:38

    are you trying to load csv files into a MySQL table? You can do that easily with the LOAD DATA LOCAL INFILE command.

    Example:

    LOAD DATA LOCAL INFILE '/data.csv' INTO TABLE my_table FIELDS TERMINATED BY ','

    You should be able to enter that command from any interface to MySQL. I'm assuming workbench has a way for you to execute sql queries.

提交回复
热议问题