Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. LOAD DATA INFILE 'file.txt'
  2. INTO TABLE t1
  3. (column1, @dummy, column2, @dummy, column3);
  4.  
  5. load data infile 'filelocation../file.csv' into
  6. table myTable columns terminated by ',' optionally enclosed by '"'
  7. escaped by '"' lines terminated by 'n'(@value1,@value2,@discardValue,@value4)
  8. set f1=@value1 ,f2=@value2,f3=@value4;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement