如何在 Zend Framework 中使用准备好的语句

Mysql 以这种方式支持准备好的语句:

Mysql supports prepared statements in this way:

http://dev.mysql.com/doc/refman/5.0/en/sql-syntax-prepared-statements.html

Zend Framework 中是否有支持(我没找到),以及如何使用它.如果没有,您将如何将准备好的语句实现为 Zend Framework 插件.

Is there a support for it in Zend Framework (I couldn't find it), and how to use it. If not, how would you implement prepared statements as Zend Framework addon.

推荐答案

经过一些研究,我没有发现 ZF 以同样的方式支持准备好的语句.您唯一能做的就是模仿@Nikita Gopkalo 发布的内容.

After some research, I didn't find ZF's support for prepared statements in this very same way. The only thing you can do is to emulate it as @Nikita Gopkalo posted.

相关文章