zoukankan      html  css  js  c++  java
  • csv 导 mysql

    csv  导库命令

    eg :

    load data  local infile ' /home/chengqinglong/ 2yd.csv' into table

    test_ssid fields terminated by ',' optionally enclosed by '"' escaped by '"' lines terminated by ' '

    查阅

    Now load your CSV using LOAD DATA LOCAL INFILE ,we need to use --local-infile before we loadCSV in in new MySQL vesrsions, due to security reasons.

    格式: 

    1. # MySQL中导入导出数据时,使用CSV格式时的命令行参数  
    2. # 在导出数据时使用:select ... from ... [where ...] into outfile '/tmp/data.csv' $MYSQL_CSV_FORMAT;  
    3. # 在导入数据时使用:load data infile '/tmp/data.csv' into table ... $MYSQL_CSV_FORMAT;  
    4. # CSV标准文档:RFC 4180  
    5. MYSQL_CSV_FORMAT="fields terminated by ',' optionally enclosed by '"' escaped by '"' lines terminated by ' '"  
  • 相关阅读:
    会议总结
    排球比赛积分规则
    我的计算机历程和认识
    排球积分程序
    《如何成为一个高手》观后感
    十八周总结
    十六周总结(流程)
    排球计分程序
    十四周学习总结
    十三周学习总结
  • 原文地址:https://www.cnblogs.com/qlchan/p/5139462.html
Copyright © 2011-2022 走看看