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

PDO显示除“未找到表格”之外的所有例外情况

I'm working on my converter script and I need to be able to see errors like with foreign keys or duplicate primary key values. But I want to be able to hide the 'table not found' errors.

If I set errors on silent, it shows no errors. If I put it on exception, it shows all errors (when it shouldn't show table not found errors).

Any way of managing this without string contains or something like that?

近期文章

  • 让php从Mysql自动填充电子邮件地址
  • 将Android Studio连接到Web服务到SQL Server
  • 从字符串中提取所有<a href="#"># </a>标记的最佳方法是什么
  • 使用PHP计算解析时地理点之间的距离[关闭]
  • ffmpeg视频缩略图大小
  • 在帐户页面上获取自动增量值(登录系统)
  • .js或.php文件未运行,除非页面链接以.html结尾
  • 批处理文件错误句柄
  • 在注册时隐藏BuddyPress中的“名称”字段
  • msg不使用curl发送
  • Dropzone.js没有提交文件
  • Symfony Doctrine没有重复的价值
  • 解析错误:语法错误T_VARIABLE [重复]
  • 如何在MySQL,opencart中更新时间
  • 获取Smarty模板(传递数据)为字符串
  • 将文本字段更改为选择和默认值
  • 会话php5.5 mysqli不存储信息
  • 从数据库里面查询一段具体的数据之后java如何根据时间戳每五分钟每五分钟这样去统计数据
  • 基本数据类型是如何被查找的?
  • 若方法多次传入不同参数,会在 CodeCache 中被编译为多份机器码吗?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华