Import a CSV file into MySQL workbench into a new table dynamically

白昼怎懂夜的黑 提交于 2019-12-13 01:38:11

问题


I can import a CSV file data into a existing table in MySQL Workbench, using Load data infile , but what if I have a file with 25 columns, it becomes a pain to create a structure for such tables before importing.

Is there a way to import CSV files without creating the structure, like proc import in SAS?


回答1:


Yes, there is. Try the new 6.3 release (currently in RC, soon to be GA) which comes with a new table data import/export feature that supports CSV and JSON data. It creates the table on the fly during import.



来源:https://stackoverflow.com/questions/29672309/import-a-csv-file-into-mysql-workbench-into-a-new-table-dynamically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!