基本语法:
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 da
function 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);
}
Mysql LOAD DATA demo
最新推荐文章于 2021-05-09 20:38:26 发布