Desativar O Autocommit
#1
Posted 09/08/2011, 17:00
pessoal ,seguinte, como faço para desativar o autocommit e "commitar" apenas caso uma determinada condição for verdadeira???
em processos de transação ultilizo o "mysql_query("SET autocommit='0'");" mas não quero usar transação para tudo...
o que sugerem???como posso desabilitar o autocommit??
Valeu pessoal!!!
horácio
http://www.iconsorciofiat.com.br.
#2
Posted 09/08/2011, 19:12
- horacio2009 likes this
#3
Posted 10/08/2011, 09:10
mas digamos que eu esteja usando uma transação implícita, não a declaro no código, mas quero travar o autocommit...como faço?
http://www.iconsorciofiat.com.br.
#4
Posted 10/08/2011, 09:51
http://dev.mysql.com.../en/commit.html
---By default, MySQL runs with autocommit mode enabled. This means that as soon as you execute a statement that updates (modifies) a table, MySQL stores the update on disk to make it permanent. To disable autocommit mode, use the following statement:
SET autocommit=0;After disabling autocommit mode by setting the autocommit variable to zero, changes to transaction-safe tables (such as those for InnoDB, BDB, or NDBCLUSTER) are not made permanent immediately. You must use COMMIT to store your changes to disk or ROLLBACK to ignore the changes.
Só completando, o efeito é o mesmo de um START TRANSACTION. Então não faz muita diferença.
Edição feita por: LeoB, 10/08/2011, 09:53.
- horacio2009 likes this
#5
Posted 22/09/2017, 06:36
Ursachen Levitra cialis Pseudomonas Aeruginosa Resistant To Amoxicillin
Tab Online Isotretinoin Delivered On Saturday Florida Al Maximo Kamagra Order Trazadone Online
Finasteride 1 Mg <a href=http://cialtobuy.com>cheap cialis</a> Can I Purchase Doryx No Doctors Consult
#6
Posted 29/09/2017, 01:41
Amoxicillin 2000mg Dosage Order Paroxetine Without Prescription cialis price What Is Amoxicillin Used To Treat
Viagra Price At Walgreens buy cialis Rogaine Con Propecia Is Cephalexin Safe While Breastfeeding Keflex Allergic Reaction
#7
Posted 09/10/2017, 04:13
Levitra Contra Reembolso generic viagra Propecia Prix Canadien Propecia Hiperplasia Prostatica Propecia Online Canada No Prescription
Amoxil Bd Generique Cytotec Propecia Testicles Impotence viagra prescription Levitra 10mg Vs 20mg
#8
Posted 25/10/2017, 10:18
Acheter Cialis 20mg En France Amoxicillin Wirkungseintritt Hydrochlorothiazide 25 Mg For Sale viagra Reation To Amoxil Cialis Pas Cher Achat
Propecia While On Accuweather viagra Amoxicilina In Germany Ou Acheter Misoprostol Cytotec
#9
Posted 05/11/2017, 01:19
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)