Tool That Convert mySQL Query To Zend FrameWork Query

自闭症网瘾萝莉.ら 提交于 2019-12-03 13:44:46

问题


Is there any Online Web Tool that Convert mySQL Query To Zend FrameWork Query. that is i type mySql Query and the Tool Convert it to Zend FrameWork equivalent Query


回答1:


You don't need a tool for this. Within Zend Framework's Zend_Db, component, you can do:

$stmt = $db->query($sql);

If $sql is a select, then you can retrieve the data with:

$rows = $stmt->fetchAll();

Alternatively, ZF is just a PHP framework, so there's nothing stopping you continuing to use PDO or mysqli directly.



来源:https://stackoverflow.com/questions/10153740/tool-that-convert-mysql-query-to-zend-framework-query

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!