Mysql LOAD DATA demo

来源:互联网 发布:最全英语单词数据库 编辑:程序博客网 时间:2024/06/03 15:31
基本语法:load data  [low_priority] [local] infile 'file_name txt' [replace | ignore]into table tbl_name[fields[terminated by't'][OPTIONALLY] enclosed by ''][escaped by'\' ]][lines terminated by'n'][ignore number lines][(col_name,   )]local dafunction loadData(){    taPath=$1;        LOAD DATA LOCAL INFILE "$dataPath"  REPLACE INTO TABLE ad_data fields terminated by ',' (time,app_id,pkg_name,country,placement,ad_req_num,ad_req_filled_num,imp_num,click_num,revenue);}
原创粉丝点击