开发者

PDOStatement get SQL after all bindings apply [duplicate]

This question already has answers here: Closed 12 years ago.

Possible Duplicates:

Getting a PDO query string with bound parameters without executing it

PDO Prepared Statements

Hi, I would like to get a full query from PDOStatement, however I only found the $queryString property which seems to contain merely the original string without the bindings applied. I could iterate through the bindings and replace it myself, however I'd like to get the sql this class is working with i开发者_StackOverflow社区nternally. Is this possible somehow? Thanks

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜