Create mysql table directly from CSV file using the CSV Storage engine?

前端 未结 13 1354
感情败类
感情败类 2020-12-04 10:08

I just learned that MySQL has a native CSV storage engine which stores data in a Comma-Separated-Value file per table.

Is it possible to create a table directly from

13条回答
  •  长情又很酷
    2020-12-04 11:09

    I have made a Windows command line tool that do just that.

    You can download it here: http://commandline.dk/csv2ddl.htm

    Usage:

    C:\Temp>csv2ddl.exe mysql test.csv test.sql
    

    Or

    C:\Temp>csv2ddl.exe mysql advanced doublequote comma test.csv test.sql
    

提交回复
热议问题