如何在Zend Framework中使用准备好的语句 [英] How to use prepared statements in Zend Framework
本文介绍了如何在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.
这篇关于如何在Zend Framework中使用准备好的语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文