Home  >  Q&A  >  body text

MySqlConnector: MySqlBulkLoader class. Upload empty data from csv to MySQL table

From MySqlConnector.MySQLBulkLoader class I want to convert csv to MySQL tableKeep null values.

P粉398117857P粉398117857194 days ago582

reply all(1)I'll reply

  • P粉781235689

    P粉7812356892024-04-07 12:02:48

    This worked for me:

    In the csv file, save empty data, such as \N (without "")

    For example (.csv file)

    "A US Equity","20220429","ACTV",\N,\N

    When you upload a file, MySQl detects that the file is empty:

    Configuration document: https://mysqlconnector.net/api/mysqlconnector/mysqlbulkloadertype/

    reply
    0
  • Cancelreply