我可以一次将mysql函数转换为PDO吗? [英] Can I convert mysql functions to PDO one at a time?
本文介绍了我可以一次将mysql函数转换为PDO吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我看来,我有一堆mysql查询,我需要将其转换为PDO.我可以一次执行一次此查询,而其他所有功能仍可以继续工作吗?例如,如果我将1个查询转换为PDO却妨碍了我所有其他mysql查询正常工作?
I have a bunch of mysql queries in my sight that Im going to need to convert to PDO. Can I do this one query at a time and all other functions continue to work? For example if I convert 1 query to PDO with that hinder all my other mysql queries from working properly?
推荐答案
只要打开2个数据库连接,一个用于mysql_*
函数,一个用于PDO,就可以正常工作.
That should work without any problems as long as you have 2 database connections open, one for the mysql_*
functions and one for PDO.
唯一的潜在缺点是两个数据库连接(而不是一个)的临时额外开销.
The only potential drawback is the temporary extra overhead of the two db connections instead of one.
这篇关于我可以一次将mysql函数转换为PDO吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文