I have a data file where some rows are comment lines starting with %. How to load data from such a file into a mysql table?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ah. No. From the spec for the command there is no way to get it to ignore lines starting with a specific character. You can skip a certain number of lines, but that’s the best you can do.
You’ll want to preprocess the file. Or tell whoever is generating it to stop putting that in place.