新学mysql在用load data导入txt文档时发现导入的内容,select 之后是乱码,先后把表,数据库的字符集类型修改为utf8,但还是一样,最后在

http://bbs.chinaunix.net/thread-3761449-1-1.html

发现问题,导入的文档不是utf8类型的。

 

load data local  infile 'c:\\data.txt'
 into table person2 character set utf8  (name,age,city,salary); 这个是导入到表person2,语句的默认分隔符是tab

 

关于load data的详细介绍:http://hunan.iteye.com/blog/752606

相关文章:

  • 2021-05-25
  • 2022-01-04
  • 2021-08-20
  • 2021-04-28
  • 2022-12-23
  • 2021-10-27
猜你喜欢
  • 2021-11-28
  • 2022-12-23
  • 2021-11-10
  • 2021-08-01
  • 2022-12-23
  • 2022-02-03
  • 2021-11-06
相关资源
相似解决方案