Loading CSV files into MySQL Workbench

后端 未结 6 669
旧巷少年郎
旧巷少年郎 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:37

    Does it have to be Workbench?

    Can you use other MySQL bins?

    Here's an example: Create database

    Create table

    load data local infile '/path/whatever.csv' into table dbName.tableName fields terminated by ',' enclosed by '"' lines terminated by '\n';

提交回复
热议问题