如何在phpmyadmin中将分隔数据导入mysql

how to import delimited data into mysql in phpmyadmin(如何在phpmyadmin中将分隔数据导入mysql)
本文介绍了如何在phpmyadmin中将分隔数据导入mysql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我使用的数据示例

24701||37.279788||-81.229023||WV||BLUEFIELD||MERCER

正如你所看到的,它是用双管道分隔的.phpmyadmin 要求我提供以下内容

as you can see its double pipe delimited. phpmyadmin is asking me for the following

Fields Terminated By  
Fields Enclosed By    
Fields Escaped By  
Lines Terminated By  

如何正确导入我的数据?

what do i put to correctly import my data?

推荐答案

mysqlimport 使用 --fields-terminated-by="||"

mysqlimport works with --fields-terminated-by="||"

Fields Terminated By ||

看起来 PHPMyAdmin 没有.然后你必须做一个替换,但要小心不要弄乱你的数据(即,如果你替换 || for ,请确保原始中没有更多的 , 字符)

Looks like PHPMyAdmin doesn't. Then you have to do a replace, but be careful that you aren't messing with your data (ie, if you replace || for , be sure there are no further , characters in the original)

这篇关于如何在phpmyadmin中将分隔数据导入mysql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Hibernate reactive No Vert.x context active in aws rds(AWS RDS中的休眠反应性非Vert.x上下文处于活动状态)
Bulk insert with mysql2 and NodeJs throws 500(使用mysql2和NodeJS的大容量插入抛出500)
Flask + PyMySQL giving error no attribute #39;settimeout#39;(FlASK+PyMySQL给出错误,没有属性#39;setTimeout#39;)
auto_increment column for a group of rows?(一组行的AUTO_INCREMENT列?)
Sort by ID DESC(按ID代码排序)
SQL/MySQL: split a quantity value into multiple rows by date(SQL/MySQL:按日期将数量值拆分为多行)