How Mysql load data in file statment behaves in case of exception -


i inserting data table mysql load data local infile statement. csv file contains 50000 rows.

my question suppose load data infile stament has inserted 30000 rows , @ time power failure or exception has occurred. in case mysql automatically rollback transaction or there 30000 rows table.

it depends engine using.

  • remember myisam doesn't support transactions, myisam find in database rows inserted moment

  • with innodb instead, rollback find no rows inserted.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -