Rt
MYSQL and pdo_mysql that better speed more
Reply content:
Rt
MYSQL and pdo_mysql that better speed more
PDO is an officially recommended, more generic way to access your database, and if you don't have special needs, then you'd better learn and use PDO.
But if you need to use the advanced features that are unique to MySQL, you might want to try Mysqli, because PDO does not include features that are unique to MySQL in order to be able to use it on multiple databases at the same time.
MYSQLI is an enhanced interface for MySQL, providing both process-oriented and object-oriented interfaces, as well as the currently recommended MySQL driver, and the old C-style MySQL interface will be turned off by default in the future.
http://blog.segmentfault.com/jysperm/1190000000403307
Speed is no better than.
But which is better, of course, PDO is better. The MySQL interface has no pre-compiled functionality, and it is best to use PDO (or mysqli) to prevent injection.
Mysqli or PDO, do not use Mysql driver