Re: Importing of text fails on incompatible date fields.

2002-01-08 Thread DL Neil
Jeremy, Apart from this perl of wisdom, how about defining two columns: one a 'temporary' text field and the other the 'real date column - as proposed, and importing the date-data into MySQL in the temporary-text field (and leaving the other/real one empty). Then copy the data out of the tempor

Re: Importing of text fails on incompatible date fields.

2002-01-08 Thread Michael Stassen
#!/your/path/to/perl open(OLD, "yourbigfile.txt"); open(FIXED, ">newfile"); while ($line = ) { $line =~ s/(\d{2})-(\d{2})-(\d{4})/$3-$1-$2/g; print FIXED $line; } Michael On Tue, 8 Jan 2002, Jeremy Johnstone wrote: > > I have a flat text file that is about 820mb I need to import into a d