Hi, I've got a database import that runs daily and pulls 100000 records into a 600 column table. Is there a way to keep the leading zeros with a LOAD DATA query? They don't seem to end up in the records and are required.
LOAD DATA
INFILE "z:\\folder\\file"
INTO TABLE `db`.`tble`
FIELDS TERMINATED BY '\t'
IGNORE 1 LINES;
The table looks like
CREATE TABLE `db`.`table` (
`c1_ID` mediumint(7) NOT NULL default '0',
`c2_GROUP` smallint(2) NOT NULL default '0',
`c3_LNAME` varchar(30) default NULL,