I have problem: when I import csv to table,my csv'column has blank,and my table's type set int(or float), it happens error, how to solve the problem...?
error: import csv which column has blank value and database table's column type is int
The error is only happening when MySQL runs with STRICT_TRANS_TABLES mode.
You can "unset" the mode for the current session, then the INSERTs should run fine:
SET @@sql_mode:='';
-- CSV import...
Please login to leave a reply, or register at first.