我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在使用事务时处理错误,表是使用myISAM引擎而不是InnoDB?

The beginTransaction function in php does not return false when the database is not using the myISAM engine by default, or if tables are using myISAM instead of InnoDB.

How, then, can you error handle when this occurs?

I found this link where I can query the database and see if the table is myisam or innodb...but i don't know if thats the best solution. I would have to check before every query if the table is myisam or innodb. How do I find if my a table is MyISAM or Innodb

近期文章

  • 使用PHP启动联系表单。 无法让它工作[关闭]
  • 如何重新加载div?
  • 不允许使用关键字符
  • TCPDF writeHTMLCell新行问题
  • 数据库结果为两级菜单
  • 没有收到Phonegap iOS推送通知
  • 如何用.php / HTML创建一个文件数组?
  • Laravel 4.2复制包括儿童用品
  • 连接功能与PHP中的按钮
  • 求Java屏幕监控解决方案
  • 按下按钮后的行为
  • jquery:将php include文件添加到jquery内容?
  • 来自simplexml_load_string的XML的var_dump
  • 将多个php表单数组插入mysql行
  • Wordpress AD集成错误检索组
  • 使用cURL和PHP从iTunes中检索RSS Feed
  • 如果查询为空,则Joomla使用不同的查询
  • 致命错误:无法访问.. PEAR-PHP / PHP中的空属性
  • 如何从我的扩展程序向我导出一些数据?
  • PHP强制下载在文档的开头添加2行

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华