简体   繁体   English

php:使用 mysqli 与 odbc 连接

[英]php: using mysqli with odbc connections

i was wondering if it would be possible using the mysqli interface for accessing odbc connections?我想知道是否可以使用 mysqli 接口访问 odbc 连接? i'm currently accessing an ms access database via odbc driver and php but it's a bit inconvenient.我目前正在通过 odbc 驱动程序和 php 访问 ms 访问数据库,但这有点不方便。

You cannot use mysqli to access MS Access, the mysql improved extension only talks to the mysql client library either directly or via mysqlnd native driver.您不能使用 mysqli 访问 MS Access,mysql 改进的扩展只与 mysql 客户端库直接或通过 mysqlnd 本机驱动程序对话。 You could use PDO to access both but you will lose some functionality over mysqli.您可以使用 PDO 来访问两者,但您将失去 mysqli 的一些功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM