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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -