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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -