Advertisement
badlogic

migration script csv loadinfile

Apr 19th, 2017
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.55 KB | None | 0 0
  1. LOAD DATA LOCAL INFILE '/home/linux/Desktop/student10.csv' INTO TABLE student_applicant_information IGNORE 1 LINES
  2. FIELDS TERMINATED BY ','
  3. ENCLOSED BY '"'
  4. LINES TERMINATED BY '\n'
  5. (ppd_lastname,
  6. ppd_firstname,
  7. ppd_middlename,
  8. ppd_nickname,
  9. ppd_gender,
  10. ppd_bday,
  11. ppd_age,
  12. ppd_caddress1,
  13. ppd_caddress2,
  14. ppd_caddress3,
  15. ppd_caddress5,
  16. ppd_czipcode,
  17. ppd_paddress1,
  18. ppd_paddress2,
  19. ppd_paddress3,
  20. ppd_paddress5,
  21. ppd_pzipcode,
  22. ppd_citizens,
  23. ppd_mobileno2,
  24. ppd_email
  25. );
  26.  
  27.  
  28.  
  29. mysql --local-infile -uroot -pr00tb33r dps_registrar_db < migrate.sql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement