hai
when i use LOAD DATA INFILE for a text file delimited by tab, and if it has any field empty it enters " as default, instead i want string 'null' to be entered.This should be done without altering the text file from which data is loaded.it loads 80000+records hence using query statement...
hai devnull
thanks for ur response. but i have a problem using LOAD DATA
because it reads only row by row, where as i have a record of 80,000 , which takes a lot of time for such operation.so i thought of going in for mysqlimport which takes file by file, so could reduce the time greatly.please...
I have a text file with column delimter as '/t' and row delimter as '/n'.
I used following command to import that text file into mysql DB.
C:\WINNT\mysql\bin>mysqlimport -C -f --debug='d:t:o,debug.txt' -d --fields-termi
nated-by='\t' --lines-terminated-by='\n' -v --local example...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.