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.
与 PHP 附带的直接数据库函数相比,使用面向对象的数据库库 MDB2 有哪些优点(和缺点)?
能够使用 PEAR 函数,如 autoExecute、prepare 和 query。如果您经常使用数据库,那么您将获得让 PEAR 转义数据的优势。如果值与预期的类型不同,它也会处理错误。
示例:您可以使用一条语句和一组值进行多次插入等。