Skip to content

Instantly share code, notes, and snippets.

@suspecie
Created January 10, 2017 16:54
Show Gist options
  • Save suspecie/73ee27481a8780b4af3755fe4c19c20b to your computer and use it in GitHub Desktop.
Save suspecie/73ee27481a8780b4af3755fe4c19c20b to your computer and use it in GitHub Desktop.
permissoes_lancamento_contabil
INSERT INTO `AccountingTransactionDescriptionProfile`(`id_descricao_transacao_contabil`,`id_perfil`)
VALUES ((SELECT 1 FROM AccountingTransactionDescription where des = 'MIGRACAO DE DADOS'),117);
INSERT INTO AccountingTransactionDescriptionEnvironment(id_descricao_transacao_contabil, id_empresa) SELECT
id_descricao_transacao_contabil ,
id_empresa
FROM
AccountingTransactionDescription
LEFT JOIN erp_empresa e ON 1 = 1
WHERE e.stat <> 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment