1. 程式人生 > >CSV文件導入導mysql數據庫

CSV文件導入導mysql數據庫

load data nor 數據庫 rmi data character -c priority rep

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 byt]
 8 [OPTIONALLY] enclosed by ‘‘]
 9 [escaped by\‘ ]]
10 [lines terminated byn]
11 [ignore number lines]
12 [(col_name, )]
View Code

CSV文件導入導mysql數據庫