混合PDO和MySQL函数? [英] Mixing PDO and MySQL Functions?

查看:57
本文介绍了混合PDO和MySQL函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在现有系统上,它使用旧的MySQL函数..我想将其全部替换为PDO,但这需要很长时间和大量测试.

On the existing system its use old MySQL functions.. I would like to replace it all to PDO but it would take a long time and a lot of testing.

是否可以在现有系统上混合使用PDO和MySQL函数?例如,新的页面/php文件将使用PDO ...所有的旧文件仍将暂时使用旧的MySQL,随着系统将继续更新,它们将被缓慢替换.

Is it possible to mix PDO and MySQL Functions on the existing system? For example new pages/php files will use PDO... All the old files will still use old MySQL for time being and will be replaced slowly as system will continue to update..

推荐答案

是的,同时使用两者是完全可以的.不过请记住,您需要的单独连接两种类型,并注意产生的暗示这样的方法.

Yes, it is perfectly fine to use both at the same time. Keep in mind, though, that you would need a seperate connection for either type and beware of the implications that arise from such an approach.

这篇关于混合PDO和MySQL函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆