Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设有人正在考虑将代码库从使用基本 PHPmysql_*函数转换为mysqli实现。到同一个数据库的连接是否可以在两个接口中并排使用,或者是否有某种方式可以相互干扰?
mysql_*
mysqli
它们不会共享连接,因此如果您将部分事务代码转换为 mysqli,则事务将无法正常工作(例如,如果您从事务中调用函数,并将函数代码更改为使用 mysqli 而不是调用代码)。