当前位置:首页 > 数据库 > 正文

CSV文件导入导mysql数据库

1.导入

    基本语法:

  

 1 基本语法:
 2 
 3 load data [low_priority] [local] infile ‘file_name txt‘ [replace | ignore]
 4 into table tbl_name
 5 [character set gbk]
 6 [fields
 7 [terminated by‘t‘]
 8 [OPTIONALLY] enclosed by ‘‘]
 9 [escaped by‘\‘ ]]
10 [lines terminated by‘n‘]
11 [ignore number lines]
12 [(col_name, )]
View Code