This one has had me scratching my head all afternoon.

I have a comma delimited text file that I am using to "import" data from a 
legacy system into a MyISAM table.  My server is 4.0.16 as is my client.  
Both run on Redhat 8.0.

An example line of imput looks like

"041502f","1","25.00","$","25.00","","2003-1-15T17:47:50","O"

with my table format being

CREATE TABLE
IF NOT EXISTS FeeSplit(
  FileNumber                    VARCHAR( 50 ) BINARY NOT NULL,
  AppraiserCode                 VARCHAR( 08 ) BINARY NOT NULL,
  SplitNumber                   FLOAT DEFAULT 0.00,
  SplitDesignator               CHAR( 01 ) DEFAULT '$',
  CalculatedSplitAmt            FLOAT DEFAULT 0.00,
  DateFeePaid                   DATE,
  DateTimeRecordAdded           DATETIME,
  PersonDesignator              CHAR( 01 ),
  SplitComments                 TEXT,
  LastModified                  TIMESTAMP,
  LastModifiedBy                VARCHAR( 08 ),
  PRIMARY KEY ( FileNumber, AppraiserCode, SplitNumber, SplitDesignator, 
CalculatedSplitAmt, DateFeePaid, DateTimeRecordAdded ),
  INDEX FileNumberDesignatorIndex ( FileNumber, PersonDesignator ),
  INDEX AppraiserDesignatorIndex ( FileNumber, AppraiserCode, PersonDesignator 
),
  INDEX AppraiserCodeIndex ( AppraiserCode ),
  INDEX FileNumberIndex ( FileNumber );

To load my data, I execute the following commands

mysql --user=xxx --password=xxx -e "USE Live_Tables; DELETE QUICK FROM 
FeeSplit; FLUSH TABLES;"
mysql --user=xxx --password=xxx -e "USE Live_Tables; LOAD DATA INFILE 
'Converted_FeeSplit.txt' INTO TABLE FeeSplit FIELDS TERMINATED BY ',' 
ENCLOSED BY '\"' ESCAPED BY '~'; "

When these commands have completed, the value of field 5 is *always* 0.00.  
This in and of itself has had me confused - especially since I can execute 
the same SQL commands in MySQLCC and the contents of field 5 will be whatever 
is in my input file.

I had this problem with 4.0.13 as well as now with 4.0.16.

Has anyone seen this before?  And possibly has a "cure" or fix?

Thanks!

Bob


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to