Search code examples
mysqlheidisql

I get the following error when import CSV to a table in Heidi SQL "SQL Error: Data truncated for column 'SlNo' at row 1"


I have saved a dataframe (pandas) in python as a CSV file and am trying to import it into a table using Heidi SQL and I get the error "SQL Error: Data truncated for column 'SlNo' at row 1". Here is the error: The error message

Here is my table: Here is the table

And this is the CSV file: https://drive.google.com/open?id=1qDfkTNZNTOKTSpnia3CFoW1ahHm6LQ5v


Solution

  • As fields in your csv file separated by comma, you have to specify "," (comma) as field terminator on import dialog instead of ";" (semicolon).