mysql怎样把表的记录导出txt格式

解决方案 »

  1.   

    select * into outfile ’/ 路径/name.txt’ from table 
     
      

  2.   

    Navicat 8 for MySQL很好用,导出功能直接完成此要求。
      

  3.   

    select * into outfile ’/ 路径/name.txt’ from table 
    怎样可以控制txt文件的格式?我想让每一条记录在txt文本文件里输出一行,字段和字段之间用“;”隔开。Navicat 8 for MySQL我用了,是可以解决,可是我想自己学习一下
      

  4.   

    select * into outfile ’/ 路径/name.txt’fields terminated by ';' from table 
      

  5.   

    select company_name  into outfile ’/name.txt’  company_name terminated by ';' from company;
    以上语句为何错误:
    [Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '’/name.txt’  company_name terminated by ';' from company' at line 1是不是路径有问题?
      

  6.   

    select company_name  into outfile ’C:/name.txt’ from company;
    把表  company中的company_name字段内容保存到C:盘根下name.txt文件中.
      

  7.   

    MySQL官方文档 http://dev.mysql.com/doc/refman/5.1/zh/index.html
      

  8.   

    navicat 使用导出文件 这个功能是不是要收费.
      

  9.   

    navicat 使用导出文件 这个功能不收费.