MySQL Forums
Forum List  »  Portuguese

Re: Carregar dados de chaves estrangeiras de uma tabela
Posted by: Marcelo Altmann
Date: August 10, 2015 04:12AM

Pedro,

Você pode desativar as FK's antes de restaurar os dados e re-ativar assim que tiver concluído.

SET foreign_key_checks = 0;
-- Faça a restauração dos dados nas tabelas
SET foreign_key_checks = 1;

Mais informações http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_foreign_key_checks.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Carregar dados de chaves estrangeiras de uma tabela
1058
August 10, 2015 04:12AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.