开发者

PDOStatement get SQL after all bindings apply [duplicate]

开发者 https://www.devze.com 2023-02-06 07:52 出处:网络
This question already has answers here: Closed 12 years ago. Possible Duplicates: Getting a PDO query string with bound parameters without executing it
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

精彩评论

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