Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在用 PHP 中的 PDO 创建一个 SQL 查询。不幸的是,我的查询似乎有错误。我已经尝试过$query->errorInfo(),,但这只会给我一点错误消息(“您的语法有错误...”)。
$query->errorInfo(),
如何显示 PDO 传递给我的数据库的整个查询?
TIA。
你真的不能。这已在此处讨论过,请参阅:
从 PDO 准备好的语句中获取原始 SQL 查询字符串